Closing/Removing a stack from memory
bvlahos at mac.com
Sun Aug 5 01:24:31 EDT 2012
You are correct. Geoff Canyon showed me that lock messages is set before the stack is closed and removed from memory so the closeStack message is never sent.
Fortunately Shao Sean pointed out the command revIDEHandleObjectDeleted is sent. This is what I use in a front script in my lcTaskList plugin.
command revIDEHandleObjectDeleted pObject
if the first word of pObject is "stack" then
put the short name of pObject into vTarget
if vTarget begins with "rev" then --skip Rev's stacks and dialogs
--do you action here
InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure.
On Aug 4, 2012, at 5:14 PM, Peter Haworth <pete at lcsql.com> wrote:
> Unless I'm missing something, closing and removing a stack from memory does
> not trigger a closeStack message. That seems really strange to me but be
> that as it may, is there some other message that can be used to trap when
> that happens?
> lcSQL Software <http://www.lcsql.com>
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode