Stacks that won't delete

J. Landman Gay jacque at
Thu Jul 9 20:24:58 CEST 2015

On 7/8/2015 5:37 PM, Peter Haworth wrote:
> Probably not helpful, but I've had issues for a long time with delete stack
> not removing it from RAM, over several releases of LC.  It usually
> manifests itself when I "save as", followed by a "delete stack", followed
> by opening the original stack, at which point I get the dreaded message
> about "duplicate stack names and what do I want to do" message.

That may be a clue. I set the filename of the newly created stack, save 
it to disk, and then delete it, which is what "save as" does too. So 
maybe it's linked to that.

The odd part is that it has worked for 2 years and suddenly stopped 
working, even though the script hasn't changed and the LC version is the 
same. Also, if we step through the process in the debugger, the stacks 
are removed correctly. It's only when the script runs without pause that 
it fails, and even then only sporadically.

I'll try saving the stack earlier in the process and see if that makes a 
difference. Maybe it only gets removed from RAM if the OS has had time 
to register the new file in its database. That sounds like a stretch to 
me, but it's all I can think of.

Jacqueline Landman Gay         |     jacque at
HyperActive Software           |

More information about the use-livecode mailing list