Page 1 of 1

Standalone app will not shutdown in task manager

Posted: Fri May 15, 2009 5:25 am
by bidgeeman
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

Posted: Fri May 15, 2009 5:43 am
by paul_gr
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

Posted: Fri May 15, 2009 5:49 am
by bidgeeman
Wow paul!! Thanks. I sat that code in the card script and it worked.

Many thanks again!

Cheers
Bidge