Page 1 of 1
A stack of this name already exists
Posted: Mon Dec 29, 2014 8:25 pm
by uelandbob
I'm running Mac Yosemite and LC 7.0. I've created a stack and then deleted it. Then I tried to make a new stack with the same name, but LC says "A stack of this name already exists".
Is that a bug or am I doing something wrong?
Re: A stack of this name already exists
Posted: Mon Dec 29, 2014 9:28 pm
by dunbarx
Hi.
The stack is still in memory. This is often a good thing. You must set the destroyStack property to "true". Then it will be removed completely. Note that if there are other stacks in the stack file, these need to be cleaned out as well.
LC will complain if you only close a stack and then try to open (or create) another stack with the same name. Purge as you go...
Craig Newman
Re: A stack of this name already exists
Posted: Mon Dec 29, 2014 9:59 pm
by uelandbob
Thanks Craig for the swift reply

Re: A stack of this name already exists
Posted: Wed Dec 31, 2014 12:35 am
by jacque
If you don't want to change the properties of the stack itself, you can choose "Close and remove from memory" from LiveCode's File menu. That's a one-time removal.