Destroying cloned stacks

Mark Wieder mwieder at ahsoftware.net
Sun Feb 21 22:43:22 EST 2010


Jeffrey-

Sunday, February 21, 2010, 7:08:31 PM, you wrote:

> on closeStack
>    destroy this stack
> end closeStack

Yikes! Destroy isn't a keyword, so I'm hoping that's a typo, or the
result of agitation after having lost some work.

That said, have you set the destroyStack of the cloned stacks after
you create them? That way when you close them they should be purged
from memory. And you might try something like

on closeStack
  if the short name of this stack is "dontDeleteMe" then
    if the commandKey is not down then
      exit closeStack
    end if
  end if
end closeStack

-- 
-Mark Wieder
 mwieder at ahsoftware.net




More information about the use-livecode mailing list