Re: possible win32lib bug
- Posted by jessedavis Sep 03, 2019
- 1150 views
It will hide/destroy your main window and (eventually) cause your WinMain() call to return, that's all.
This is for Pete Lomax:
I apologize for my absence. Heart event - ended up in hospital.
Why this bothers me...
I execute the closeApp().
The main window is closed. When the main window is closed a signal is sent to the main loop to terminate.
VOID = sendMessage( id, WM_CLOSE, 0, 0 )
Unfortunately, while this message is rattling around Euphoria continues to execute at the next line. How long this takes probably depends on the task switcher. If one happens to hit this just as the system switches to a new task the delay can be considerable (100 ms at least).
Hence the problem and the crash.
The abort() is a ham fisted way to deal with this but is works.
I'm not very good at this stuff (especially system related stuff).
As always, thanks for your help.
Regards,
jd