GedB wrote:If you fail to include StopDrawing() then terrible, terrible things will happen.
The debugger is doing you a great favour. Whatever happens, always make sure that StopDrawing is called.
You got it backwards. He does always call StopDrawing(), but this also includes times when StartDrawing() has been included.
Tomio, I don't think there is a way around this without keeping track of whether you have started drawing using a variable or something. I'd like to see the ability for the debugger to continue from it's execution point if you want, but currently when the debugger is activated you cannot do anything but exit the program :(
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
I don't think there's any need to call anything in particular when you close the program, I'd have thought purebasic takes care of it all itself. If you've been writing to files and have those open, it might be worth closing them, but other than that, I'd guess it was safe.