[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: closing an application



Quoting "Maurizio Ferreira":
>    (yield (make-semaphore 0)))
>
> [...]
> 
> The problem is that the window is hidden, but the application does not
> stop.

I think you want to get rid of the above line.

MrEd will continue to run as long as a window is open, or as long as
code in the main thread is still executing. In the your example `(yield
(make-semaphore 0))' never returns --- that is, it never stops
executing --- in the main thread, so MrEd can't exit.

Matthew