custom properties in stacks that aren't open

Wouter wouter.abraham at pi.be
Fri Jun 11 18:34:06 EDT 2004


Chris Sheffield wrote:

> custom properties in stacks that aren't open
> Chris Sheffield revlist at cableone.net
> Fri Jun 11 17:03:45 EDT 2004
>

> Thanks, Richard.
>
> So if I have a stack that's 50 MB containing binary data in custom
> properties, will the whole stack get loaded into memory if I want read 
> the
> data from just one of those properties?  If that's the case, how do I 
> close
> the stack to release that memory if it's not really "open"?  Would I 
> just
> issue a normal close stack command?
>
> Chris Sheffield
> Software Developer
> Read Naturally



You can purge stacks from memory like this:

on purgeStack x
     put the mainStack of x into tS
     put cr & the subStacks of x after tS
     repeat for each line l in tS
       close stack l
     end repeat
     delete stack x
end purgeStack

Greetings,
WA



More information about the use-livecode mailing list