|
Re: File delete problem [message #336772 is a reply to message #336758] |
Thu, 02 July 2009 01:15 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Walter Harley![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=eclipse%40cafewalter.com) Messages: 847 Registered: July 2009 |
Senior Member |
|
|
"Kerry Stares" <kerry@uk.ibm.com> wrote in message
news:h2frm3$4kr$1@build.eclipse.org...
> 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
> file.
> 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.03284 seconds