For a library stack that's a mainStack, I would always use:

    stop using stack "my stack"
    delete stack "my stack"

It works regardless of the destroyStack setting of the stack you're removing from memory. Guaranteed.

If you want to remove a subStack from memory, you must remove its mainStack as well.

DO NOT use "delete stack" on a subStack! It will delete the subStack from the mainStack that owns it.

Best -
Phil


On 10/25/14 8:45 AM, Paul Dupuis wrote:
What is the BEST way to close and remove a stack from memory and be sure
it is really and truly removed?

--
Phil Davis


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to