M
Marcin Rodzik
Hello everybody,
I experience a following problem: I try to delete files my code have
created using the File.delete() method, and if the delete operation
fails, I use File.deleteOnExit(); however, some files still persist to
exist.
I found an article: http://www.devx.com/Java/Article/22018 (I'm using
Windows XP, and I havn't tested my application on other systems).
Therefore, my hipothesis is that there are some open streams to these
files in my program.
The thing is I use someone else's code in my program, and can't really
figure out where these open streams are. My questions are:
+ how can I track down these open streams in a simple way?
+ can there be any other reasons why my files can't be deleted?
Thank you for any help and advice.
MR
I experience a following problem: I try to delete files my code have
created using the File.delete() method, and if the delete operation
fails, I use File.deleteOnExit(); however, some files still persist to
exist.
I found an article: http://www.devx.com/Java/Article/22018 (I'm using
Windows XP, and I havn't tested my application on other systems).
Therefore, my hipothesis is that there are some open streams to these
files in my program.
The thing is I use someone else's code in my program, and can't really
figure out where these open streams are. My questions are:
+ how can I track down these open streams in a simple way?
+ can there be any other reasons why my files can't be deleted?
Thank you for any help and advice.
MR