Geoff a écrit :
> In the previous version of Clojure, the program would stay alive as
> long as the window was open. Now the program stops and the window
> closes when it reaches the end of the file.
>
> You can see the intended effect by adding (. Thread (sleep 10000)) to
> the end of the file.
>
I guess you're using clojure.lang.Script. Since r749 System.exit(0) is
called at the end of the program execution (on main thread).
In your case, you can work around this by:
- adding (let [o (new Object)] (locking o (. o (wait))))
at the end of the file causing the main thread to wait (and thus
preventing System.exit to be executed)
- uncommenting (setDefaultCloseOperation (. JFrame EXIT_ON_CLOSE)) (to
exit when the main window is closed).
Hope this helps.
Christophe