Closing .exe doesnt kill process

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
ddaddy
Posts: 17
Joined: Sun May 15, 2011 5:40 pm

Closing .exe doesnt kill process

Post by ddaddy » Tue May 24, 2011 9:20 pm

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

dglass
Posts: 519
Joined: Thu Sep 24, 2009 9:10 pm
Contact:

Re: Closing .exe doesnt kill process

Post by dglass » Tue May 24, 2011 9:31 pm

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.

ddaddy
Posts: 17
Joined: Sun May 15, 2011 5:40 pm

Re: Closing .exe doesnt kill process

Post by ddaddy » Tue May 24, 2011 9:37 pm

Many thanks, this did the trick.

Code: Select all

on closestack
  quit
end closestack

Post Reply