Looking for best practice in switching libraries

Phil Davis revdev at pdslabs.net
Sat Oct 25 22:28:16 EDT 2014


Sorry, I was late to the party!
Phil


On 10/25/14 7:24 PM, Phil Davis wrote:
> 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





More information about the use-livecode mailing list