Page 1 of 1

Closing .exe doesnt kill process

Posted: Tue May 24, 2011 9:20 pm
by ddaddy
I've just compiled some code into a windows .exe and it runs perfectly. However when closing it (X top right) the process is still running (as viewed from windows task manager).
The .exe can't be deleted because it still running, supposedly.

I'm still using the 30 day free trial on Windows 7.

Am I doing something wrong with the compiling?

Thanks

Re: Closing .exe doesnt kill process

Posted: Tue May 24, 2011 9:31 pm
by dglass
You probably have to issue your quit* command in the closeStack message/event

* - at its simplest, just the 'Quit' command, but you may have some shutdown stuff that needs to happen so that program flow would need to be initiated.

Re: Closing .exe doesnt kill process

Posted: Tue May 24, 2011 9:37 pm
by ddaddy
Many thanks, this did the trick.

Code: Select all

on closestack
  quit
end closestack