Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#28 Deletion errors on Windows

open
nobody
Editor (14)
6
2005-07-02
2005-07-02
Channing Walton
No

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

Discussion

  • Steiner
    Steiner
    2007-05-30

    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

     
  • Steiner
    Steiner
    2007-05-31

    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