End doesn't terminate app under Win
BlitzMax Forums/BlitzMax Programming/End doesn't terminate app under Win
| ||
Hello altogether, I experience a very strange Pproblem since a few months. Whenever I compile a code under Win (XP or 7), the programme actually doesn't terminate with "End". To close an application I do the following (now for ages): Select WaitEvent() Case EVENT_WINDOWCLOSE FreeGadget(mainwin) End End Select It works perfectly under Mac OS and Linux but the programme keeps running under win. I have to force-quit it with the task manager. So what's actually wrong? Many thanks in advance Simon |
| ||
Depending on how the program is ended, it could receive either a WindowClose event or AppTerminate event, so you'll need to test for both instances.Select WaitEvent() Case EVENT_WINDOWCLOSE, EVENT_APPTERMINATE |
| ||
Hi TomToad, that's right. I have forgotten that in this simple example. The programme enters the condition, executes FreeGadget(main) (and the window is removed), but doesn't terminate. The application is still listed in the windows taskmanager, and of course cannot be overwritten and that sort of stuff. I try to have a look at it tonight. Thank you Simon |