Standalone app will not shutdown in task manager

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Standalone app will not shutdown in task manager

Post by bidgeeman » Fri May 15, 2009 5:25 am

Hi.
I built a small test app with the latest version of Runrev and executed the exe. I then closed the exe down and tried to delete it but it was stuck in memory. I had to open up task manager manually shut it down so I could delete it. Why is this happening?

Bidge

paul_gr
Posts: 319
Joined: Fri Dec 08, 2006 7:38 pm

Post by paul_gr » Fri May 15, 2009 5:43 am

If stack is closed while the pending message queue is not empty, standalone usually remains in memory.

try something like this when the app closes::

on closeStack
repeat until the pendingMessages is empty
cancel item 1 of line 1 of the pendingMessages
end repeat
end closeStack

cheers
Paul

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Fri May 15, 2009 5:49 am

Wow paul!! Thanks. I sat that code in the card script and it worked.

Many thanks again!

Cheers
Bidge

Post Reply