Deletion errors on Windows
Brought to you by:
channingwalton
Version 2.4.0 on Windows.
Under windows, sometimes the deletion of a wiki file causes an error
saying that a resource cannot be deleted with no stack trace.
I have not determined the exact sequence of events required to reliably
reproduce the error and it doesn't occur on Macs (of course ;)
However, the unit tests fail under windows with the same problem so I'm
working on it.
Channing
Logged In: YES
user_id=1091501
Originator: NO
I experience the same problem with 2.6.0. If I use a manual garbage collection from Eclipse, I can delete the file.
This looks like an unclosed filehandle to me, which is then garbage collected, freeing the file.
Daniel
Logged In: YES
user_id=32730
Originator: YES
Hi Daniel,
thanks for the suggestion. I'll try to have a look. Do you notice it after you export something?
Channing
Logged In: YES
user_id=1091501
Originator: NO
Hi Channing,
wow, that's what I call a fast response!
It happens not just on export. It's sufficient to just create a file (test.wiki), do some editing and then close the editor. If I try to delete the file right after closing the editor I get the error.
Now, if I do a GC (using Eclipse - Preferences - General - Show Heap Status --> now you can manually trigger a GC) and then try to delete the same file, it works fine.
Daniel
Logged In: YES
user_id=32730
Originator: YES
:-)
thanks for the info. I'll have a poke around and see what I have forgotten to do.
Channing