On Nov 22, 2007, at 6:46 PM, MacArthur, Ian (SELEX) (UK) wrote:
>
>> void mexFunction( int nlhs, mxArray *plhs[],
>> int nrhs, const mxArray *prhs[] ){
>>
>> SimpleWindow win(300,200,"SimpleWindow");
>>
>> Fl::run();
>
>
> I wonder if it would help to call Fl::flush() at this point before you
> expire?
> Probably a long shot...
No, you are probably right. FLTK has sent the signal to close the
window, but now MSWIndows verifies the close request by sending
WM_QUIT or similar. Since the program is still busy and no more
messages are handled, the window stays around. The solution would be
to call Fl::flush() after Fl::run(), or probably even Fl::wait(0.1) to
give the OS a tenth of a second to react.
Matthias
----
http://robowerk.com/
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk