Program doesn't want to end

BlitzMax Forums/BlitzMax Beginners Area/Program doesn't want to end

Warner(Posted 2009) [#1]
Program hangs on "End". Strangely enough this error sneaked in during todays work. I didn't notice it at first, maybe I was using the "stop" button in the IDE all the time.
Everything works fine until I use "End". Even a final "Print" instruction right before the "End" works. But then the program hangs.
I can stop it with the "Stop" button.
Has anybody experienced this before? What could be the reason?


plash(Posted 2009) [#2]
Do you know of any functions that are being called when the program ends? (set via OnEnd)


Warner(Posted 2009) [#3]
No, no OnEnd is used. Thanks for the suggestion, though.
Looking further into the problem, it looks as if using the combination of LockImage and PixmapWindow is causing this problem.
By disabling the backgrounds of my GUI system, the problem goes away.
I'll look into it some more.


H&K(Posted 2009) [#4]
AS you have pointed to the GUI, I "think" it might be you have a hook/event system running/being posted to in the background.

Probably your best bet is to make sure you close all event posting systems, (which includes the gui system)