Re: Close and Delete a stack

2016-10-14 Thread Richard Gaskin
Graham Samuel write: > I have a situation where I want to close a stack and then delete it, > so that it no longer exists in memory and so that no naming > conflicts occur when I load a fresh stack with the same name. This > used to work - part of a script running in a different stack to the >

Re: Close and Delete a stack

2016-10-14 Thread Graham Samuel
Can any IDE experts out there explain exactly how the IDE does ‘Close and Remove from Memory’? I am having trouble trying to recreate this code for my standalone, and I am fairly sure that the code has to be different for LC8.x compared to earlier versions. To be clear, I’m trying to remove all

Re: Close and Delete a stack

2016-10-14 Thread Graham Samuel
Should have said, yes it’s a mainstack. I am beginning to think that the issue is that when I close the stack it is also purged from memory (as it says in the Dictionary, with provisos that I think I have obeyed), so that the following ‘delete’ doesn’t have anything to delete - this should

Re: Close and Delete a stack

2016-10-14 Thread Graham Samuel
Phil, thanks for the suggestion. I timed out last night and tried it this morning. Strangely it didn’t work - got the same error as before (347). So I’m still investigating. I am fairly sure that there is an obscure bug (or at the very least, a change of behaviour) in LC 8.1.x compared to

Re: Close and Delete a stack

2016-10-13 Thread Phil Davis
My comment wrapped. Sorry. Phil On 10/13/16 10:32 AM, Phil Davis wrote: Hi Graham, What happens if you do only this? lock messages -- assuming you don't want any handlers to be triggered by the stack's closing delete stack "myDataStack" I'm also assuming "myDataStack" is a mainStack

Re: Close and Delete a stack

2016-10-13 Thread Phil Davis
Hi Graham, What happens if you do only this? lock messages -- assuming you don't want any handlers to be triggered by the stack's closing delete stack "myDataStack" I'm also assuming "myDataStack" is a mainStack and not a substack. (As you know, you can't remove a substack from

Close and Delete a stack

2016-10-13 Thread Graham Samuel
I have a situation where I want to close a stack and then delete it, so that it no longer exists in memory and so that no naming conflicts occur when I load a fresh stack with the same name. This used to work - part of a script running in a different stack to the one being deleted: set the