Very relieved that you're totally onto it, Dave and Seb.
It's really shaping up now, looking professional, and the benefit of having
freenet.exe in C instead of assembler is inestimable.

IMO - if javaw is a hassle - it's quite acceptable practice to keep using
console java, and write code which hides the console window and senses and
closes the silly terminate dialog. as long as user doesn't see that shit,
it's cool

Let me know when you want another cruel thrash-test :)

David

----- Original Message -----
From: "Dave Hooper" <[email protected]>
To: <devl at freenetproject.org>
Sent: Friday, June 01, 2001 10:51
Subject: [freenet-devl] Javaw.exe vs. Java.exe


> 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
>


_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl

Reply via email to