How to purge a stack from memory by script?
Richard Gaskin
ambassador at fourthworld.com
Sat Aug 23 13:54:00 EDT 2003
François Cuneo wrote (rearranged in standard reading order for clarity):
>> I have a handler that reads selected data from all stacks in a
>> folder--1,648 in my real-world situation
>>
>> As it finishes processing a stack, my export handler does:
>>
>> set the destroyStack of stack currentStackName to true
>> close stack currentStackName
>>
>> This seems to be working fine for moi...am I missing somethng?
>>
> Until here OK, it works too, but if I refer again to another stack after,
> it's impossible without a warning message "...what to do with the stack
> XXX".
Have you tried saving the destroyStack property for each stack?
You'll only need to do that once, and then the stack will never be confused
with that's supposed to stay resident -- and it cuts out one line of code.
:)
--
Richard Gaskin
Fourth World Media Corporation
Developer of WebMerge: Publish any database on any Web site
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
Tel: 323-225-3717 AIM: FourthWorldInc
More information about the use-livecode
mailing list