|Re: File delete problem [message #336772 is a reply to message #336758]
||Thu, 02 July 2009 01:15
| Walter Harley
Registered: July 2009
"Kerry Stares" <email@example.com> wrote in message |
> Running Eclipse on Windows with a custom editor (extends TextEditor) I
> have a problem with deleteing a file. If I edit a file and change it, save
> the file, close the editor I cannot then delete the file using the delete
> from the context menu in the navigator view. I have crawled through the
> editor and closed everything that can be closed. The error comes from the
> low level W32 delete code. If I wait a few minutes I can then delete the
> Does anyone have any suggestions as to what might be causing this
> issue please or suggestion on how to resolve it.
Sounds like something has an open file handle, that is not being closed
until the object is garbage-collected and its finalizer is called.
Check to make sure that you're properly closing all files, writers, streams,
etc. that you open. Take particular care to check exception exit paths,
e.g., if an exception is thrown (and silently gobbled up by something else,
possibly), is the close() still happening.
Powered by FUDForum
. Page generated in 0.03548 seconds