This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: (scheme-window)


That is a well-known AWT bug (since JDK 1.1).

It seems to be (just barely) fixed with JDK 1.4.0:

http://developer.java.sun.com/developer/bugParade/bugs/4030718.html

The problem remains for printing.

jim

At 09:56 AM 4/17/2002 -0700, Per Bothner wrote:
>Bruce R. Lewis wrote:
>>It seems that closing a window opened with scheme-window exits java.  Is
>>this a peculiarity of my setup (X11/twm), a bug, or intended behavior?
>>It's nice being able to put (scheme-window #t) in a BRL page to interact
>>with the interpreter running on my web server, but I'd like to be able
>>to close that window and leave things running.
>
>I tried removing the System.exit(0) in GuiConsole's close() method.
>The problem is this:
>(1) I start up Kawa normally (interactively).
>(2) I type (scheme-window) at the prompt.
>(3) I select the Close menu option, so the window goes away.
>(4) I can continue using the Kawa command-line normally.
>(5) I type ctrl-d (end-of-file).  Normally that causes Kawa
>to exit, but it just hangs.
>
>Even worse, starting Kawa with the -w option and then closing
>the window does not exit Kawa as you'd expect.
>
>My guess is that the VM doesn't exit because some non-daemon
>thread is still running.  However, the Future than runs the
>Kawa interaction in the window does seem to finish.  Perhaps
>a volunteer could track this down?  It's probably something
>silly!
>--
>         --Per Bothner
>per@bothner.com   http://www.bothner.com/per/
>

----------------------------------------------------------------
James P. White     Pagesmiths' home is http://www.pagesmiths.com
Live free http://www.ushistory.org/franklin/quotable/quote04.htm
Try Kawa, the Java-based Scheme http://www.gnu.org/software/kawa


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]