A stack of this name already exists

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
uelandbob
Posts: 72
Joined: Mon Dec 29, 2014 3:28 pm

A stack of this name already exists

Post by uelandbob » Mon Dec 29, 2014 8:25 pm

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?
uelandbob@gmail.com

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10333
Joined: Wed May 06, 2009 2:28 pm

Re: A stack of this name already exists

Post by dunbarx » Mon Dec 29, 2014 9:28 pm

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

uelandbob
Posts: 72
Joined: Mon Dec 29, 2014 3:28 pm

Re: A stack of this name already exists

Post by uelandbob » Mon Dec 29, 2014 9:59 pm

Thanks Craig for the swift reply :D
uelandbob@gmail.com

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: A stack of this name already exists

Post by jacque » Wed Dec 31, 2014 12:35 am

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply