Ok, well, as an experiment I tried the 0.3.9.1-2 on a colleague's laptop running Windows ME and indeed discovered that a weird dialog box pops up saying "This program cannot be terminated...(etc)" when you Stop Freenet or after you click OK or Cancel on Configure. The reason I chose to use java.exe instead of javaw.exe was because I couldn't find a clean way to shut down the node if it was running within javaw.exe. Sebastian's original code would use TerminateProcess which 'works' but isn't nice. If using the ol' java.exe I could enumerate all the windows created by java.exe and send them a WM_CLOSE message, and also give the java.exe thread a WM_CLOSE message using PostThreadMessage, and java.exe would get the idea and shut the java node down cleanly on exiting. Anyone know a way to shut down the node if it is running within javaw.exe? Bear in mind we are using the Freenet.node.Node not Freenet.node.GUINode so there isn't an actual node 'Window' to speak of.
(Sebastian - maybe I need to go back to using the gui node after all? I think at least that way I could send the gui node window a WM_CLOSE and it would work ok. WAY better than TerminateProcess) So, updated (again) freenet.exe. Now *always* using javaw.exe in preference to java.exe (was this the original configuration? seems I've come full circle) because of all the nasty habits java.exe exhibits in (seemingly) all versions of Windows other than ones I have and use. Even though it has its own nasty habits. Dave _______________________________________________ Devl mailing list Devl at freenetproject.org http://lists.freenetproject.org/mailman/listinfo/devl
