Closing/Removing a stack from memory

Bill Vlahos bvlahos at
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
      end if
   end if
   pass revIDEHandleObjectDeleted
end revIDEHandleObjectDeleted

Bill Vlahos
InfoWallet ( is about keeping your important life information with you, accessible, and secure.
lcTaskList: (

On Aug 4, 2012, at 5:14 PM, Peter Haworth <pete at> 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?
> Pete
> lcSQL Software <>
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the Use-livecode mailing list