> > One thing about this is: the files are deleted in the finalizers, but JVMs > > often don't run the garbage collection right away, so if you close the node > > between the time that the objects are removed and it is garabage collected, > > you > > will be left with the files. We should probably clean up the files ourselves > > (welcome to the java generation)... > > Add System.runFinalizersOnExit(true); to Core. End of problem.
Unfortunately this is depreciated as of JDK 1.2 since Sun decided that it was "A Bad Thing"tm. I prefer the idea of doing a cleanup when the DataStore initialises (ie. all files not referenced in the .freenet directory are deleted). Ian. _______________________________________________ Freenet-dev mailing list Freenet-dev at lists.sourceforge.net http://lists.sourceforge.net/mailman/listinfo/freenet-dev
