ok so i’ve nearly got this. But it seems there is some logic error that i can’t get around. Note that i cannot use try/catch. No need to ask why
EDIT
for(String File : List){
final String FilePath = getPath() + "/" + File;
Render renderer = renderFile(FilePath);
Runtime.getRuntime().addShutdownHook(new Thread(){
public void run() {
deleteFile(FilePath);
}
});
deleteFile(FilePath);
updateReport(stuff);
writeReportToFile(Report.toString());
I want it to delete the file that’s causing my crash .. if the app crashes but it doesn’t seem to be working. Am i calling it wrongly or what? confused
FINAL EDIT
OK after much toying around i finally got it to work!! Thanks everyone
From your last question I see, that you
An easy solution goes like that:
processingImage.txt)processingImage.txtprocessingImage.txtcontains the name of the offending imageprocessingImage.txtexists, read the name of the image, delete the image and deleteprocessingImage.txt.