Sadly, exactly the same thing. If the IDE can purge a stack, why can't I? Maybe the delete command fires some other handler I don't know about. I will try to reduce the thing to a very simple test. I'm using LC 5.5.4 on a Mac, by the way.
Graham On 23 Mar 2013, at 18:54, [email protected] wrote: > Graham. > > > Without digging into this at all, what happens if you delete the file last? > > > Craig Newman > > > > -----Original Message----- > From: Graham Samuel <[email protected]> > To: How to use LiveCode <[email protected]> > Sent: Sat, Mar 23, 2013 1:28 pm > Subject: Can't delete a stack > > > I've got a stack that I want to purge in the way the IDE does. At the time of > execution of the script below, the stack is in memory with a copy of it in a > file (the path is in a global 'gDataStackPath'. I want to destroy both. Part > of > my script looks like this: > > try > if there is a file gDataStackPath then > delete file gDataStackPath > set the cantDelete of stack "myData" to false > set the destroyStack of stack "myData" to true > set the destroyWindow of stack "myData" to true > delete stack "myData" -- this should remove it from memory > > This deletes the file as expected, and the IDE shows that the stack is still > in > memory, but the script crashes on the 'delete stack..' line. The error is 361 > "can't set this property". > > What did I do wrong? > > TIA > > Graham > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
