Re: Why does 'delete stack' sometimes not work?

2016-10-19 Thread Graham Samuel
No, it was never my intention to try to delete a mainstack without it substacks - I’m sure this is impossible (and undesirable!). I thought that if I had selected ‘purge stack on close’ for the mainstack, and all the stacks and substacks involved had ‘cantdelete’ set to false, then closing the m

Re: Why does 'delete stack' sometimes not work?

2016-10-19 Thread J. Landman Gay
On October 19, 2016 10:57:09 AM Mike Bonner wrote: Silly question but.. If the mainstack has a bunch of substacks, and you try to close and remove the mainstack from memory while the substacks remain open, is this even possible? I didn't think so, and it would explain the error message. The t

Re: Why does 'delete stack' sometimes not work?

2016-10-19 Thread Graham Samuel
IDE, I invoke this menu item and step through >>> until it executes: >>> >>> close stack “myMainStack” >>> >>> Then the actual mainstack’s window closes. Those palettes which were open >>> stay open. I have a feeling that the whole thing should

Re: Why does 'delete stack' sometimes not work?

2016-10-19 Thread Mike Bonner
close stack “myMainStack” >> >> Then the actual mainstack’s window closes. Those palettes which were open >> stay open. I have a feeling that the whole thing should close (this is an >> option I chose for the mainstack - ‘purge stack on close’, ‘purge window on &

Re: Why does 'delete stack' sometimes not work?

2016-10-19 Thread Mike Bonner
s an > option I chose for the mainstack - ‘purge stack on close’, ‘purge window on > close'), but never mind, that’s what happens. > > If I then execute > > delete stack “myMainStack” > > from the message box, I get > > > Message execution error: > > >

Re: Why does 'delete stack' sometimes not work?

2016-10-19 Thread Richard Gaskin
Graham Samuel wrote: > I have a stack “myMainStack”, which has quite a few substacks > - they’re palettes which user can open to access tools etc. All of > them have their ‘cantDelete’ property set to false. ... > If I then execute > > delete stack “myMainStack” > > fro

Why does 'delete stack' sometimes not work?

2016-10-19 Thread Graham Samuel
close'), but never mind, that’s what happens. If I then execute delete stack “myMainStack” from the message box, I get > Message execution error: > > Error description: Object: stack locked, or object's script is executing > > Hint: button "File" of group

Re: Problems with delete stack - Found word(s) list error remove list in the Text body

2014-02-17 Thread Peter Haworth
that makes sense. The debugger has the script open and therefore the > delete stack command does not succeed, and the statements that come after > that go ahead and execute. It's the Delete Stack command that, when > successful seems to be FORCING the scrip to terminate. > > Bo

Re: Problems with delete stack - Found word(s) list error remove list in the Text body

2014-02-17 Thread Bob Sneidar
Okay that makes sense. The debugger has the script open and therefore the delete stack command does not succeed, and the statements that come after that go ahead and execute. It’s the Delete Stack command that, when successful seems to be FORCING the scrip to terminate. Bob On Feb 13, 2014

Re: Problems with delete stack

2014-02-14 Thread Peter Haworth
After inserting some put statements at various points in my code, it's clear that nothing in my script is being executed after the delete stack command when run normally. When run by stepping through the code in debug, everything works. I have also found that locking messages before the d

Re: Problems with delete stack

2014-02-13 Thread Peter Haworth
I tried wrapping the delete stack command in a try/catch but no error was detected. I also tried checking if the stack was in the mainStacks right after being deleted and it's not. I tried a wait command with various intervals right after the delete stack, still same problem. As mentioned

Re: Problems with delete stack

2014-02-13 Thread Peter Haworth
Right, I don;t think there could be any processes running in the deleted stack. Is there a way to check if the delete stack command worked or not? Maybe the result? There's no runtime error. Pete lcSQL Software <http://www.lcsql.com> Home of lcStackBrowser <http:/

Re: Problems with delete stack

2014-02-13 Thread J. Landman Gay
On 2/13/14, 11:17 AM, Peter Haworth wrote: I set destroyStack to true immediately before the delete stack command. Although according to the dictionary, delete stack removes a stack from memory if it's a main stack. The "delete stack" command should remove it from memory reg

Re: Problems with delete stack

2014-02-13 Thread Peter Haworth
I set destroyStack to true immediately before the delete stack command. Although according to the dictionary, delete stack removes a stack from memory if it's a main stack. Pete lcSQL Software <http://www.lcsql.com> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html>

Re: Problems with delete stack

2014-02-12 Thread Scott Rossi
et the usual LC >message about duplicate stack names and what do I want to do about them. > >In itself, that's weird because delete stack should remove the stack from >memory. I've also tried setting the destroystack property of the stack to >true before deleting it but same thi

Problems with delete stack

2014-02-12 Thread Peter Haworth
tself, that's weird because delete stack should remove the stack from memory. I've also tried setting the destroystack property of the stack to true before deleting it but same thing happens. What's even stranger is that the message asks what do I want to do with before loading , w

Re: Delete stack

2012-06-27 Thread J. Landman Gay
On 6/27/12 1:45 PM, Mark Schonewille wrote: The application browser is unreliable and that's why I stopped using it years ago. To check that the stack was removed from memory, you use the following syntax in the message box: Perhaps it's changed since you last used it. I leave it open all the

Re: Delete stack

2012-06-27 Thread Peter Haworth
lcSQL Software <http://www.lcsql.com> On Wed, Jun 27, 2012 at 2:35 PM, Paul Hibbert wrote: > Maybe I am misunderstanding something, but if you are applying the > destroyStack right before the delete stack you are not changing anything > permanently, unless you save the stack b

Re: Delete stack

2012-06-27 Thread Paul Hibbert
Maybe I am misunderstanding something, but if you are applying the destroyStack right before the delete stack you are not changing anything permanently, unless you save the stack before deleting it of course. Called from "Stack A": set the destroyStack of stack "Stack B&quo

Re: Delete stack

2012-06-27 Thread Mark Schonewille
Hi Peter, Maybe you need to post the relevant part of your script. Also, I didn't mean to lock messages but to turn them off in the Developer menu and to do all tests from the message box. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://ec

Re: Delete stack

2012-06-27 Thread Peter Haworth
k > is > > definitly still in memory. > > > > The stack does have substacks and I close them all in a repeat loop > before > > the delete stack command, but I don;t get any error messages as you > > described. > > > > This is with LC 5.5.0 OSX 10.7. &g

Re: Delete stack

2012-06-27 Thread Mark Schonewille
Haworth wrote: > Hi Mark, > executing the message box command you gave me retruns true, so the stack is > definitly still in memory. > > The stack does have substacks and I close them all in a repeat loop before > the delete stack command, but I don;t get any error messages

Re: Delete stack

2012-06-27 Thread Peter Haworth
HI Paul, Unfortunately, I can't use that method. I'm doing this as part of a tool I'll be announcing soon so it will be accessing other peoples' stacks and I don't think they'd be happy if I changed the destroyStack property on them! Pete lcSQL Software On Wed, Jun 27, 20

Re: Delete stack

2012-06-27 Thread Peter Haworth
Hi Mark, executing the message box command you gave me retruns true, so the stack is definitly still in memory. The stack does have substacks and I close them all in a repeat loop before the delete stack command, but I don;t get any error messages as you described. This is with LC 5.5.0 OSX 10.7

Re: Delete stack

2012-06-27 Thread Paul Hibbert
stroyStack of a stack is true or false. By default, the destroyStack property of newly created stacks is set to false." HTH Paul On 2012-06-27, at 11:33 AM, Peter Haworth wrote: > I have a need to close a stack and remove it from memory by script and the > dictionary says delete stac

Re: Delete stack

2012-06-27 Thread Mark Schonewille
ry by script and the > dictionary says delete stack will do that if the stack referred to is a > mainstack. > > However, after executing the delete stack command (I've double checked to > make sure I'm referring to the correct stack), the stack still shows up in > the Ap

Delete stack

2012-06-27 Thread Peter Haworth
I have a need to close a stack and remove it from memory by script and the dictionary says delete stack will do that if the stack referred to is a mainstack. However, after executing the delete stack command (I've double checked to make sure I'm referring to the correct stack), the s