Looking for best practice in switching libraries
Peter Haworth
pete at lcsql.com
Sun Oct 26 12:07:44 EDT 2014
I'm wondering what is the best practice for when to delete a library.
For example, if I have multiple stacks in memory that all access the same
library stack, I can't stop using it until the last stack closes. Should I
implement some sort of count mechanism to determine when it's safe to stop
using the library? Or just leave it in memory until I quit LC?
Pete
lcSQL Software
On Oct 25, 2014 7:24 PM, "Phil Davis" <revdev at pdslabs.net> 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
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list