Removing a stack from memory...

Bob Sneidar bobsneidar at iotecdigital.com
Tue May 15 10:49:40 EDT 2018


Don't you have to send "close me" in time? How do you close a stack with a running script? 

Bob S


> On May 15, 2018, at 24:28 , AndyP via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> This is my go-to routine for quitting applications which seems always to get
> the job done.
> 
> //General quit routine
> 
> on quitMyProject
>   lock messages
>   -- stop using stacks
>   put the stacksInUse into myStacks
>   repeat for each line myStack in myStacks
>      stop using stack myStack
>   end repeat
>   -- stacks
>   put the openStacks into myStacks
>   put "message box,home,tool,Message Box,revTools,revMenubar" & comma & the
> short name of me into myDontClose
>   repeat for each line myStack in myStacks
>      if myStack is not among the items of myDontClose then close stack
> myStack
>   end repeat
>   -- messages
>   put the pendingmessages into myMsgs
>   repeat for each line myMsg in myMsgs
>      cancel item 1 of myMsg
>   end repeat
>   set the backdrop to none
>   close me
>   if the environment is not "development" then
>      quit
>   end if
> end quitMyProject
> 
> 
> 
> -----
> Andy Piddock 





More information about the use-livecode mailing list