Page 2 of 2

Re: unwanted fireworks

Posted: Wed Feb 08, 2023 6:49 pm
by jacque
I'm not sure then, I've never seen it happen but I've seen others report it. Maybe the menu item actually does do something different. The fact that it appears to be time related is pretty odd, that doesn't make sense. It may be a red herring.

Re: unwanted fireworks

Posted: Wed Feb 08, 2023 9:10 pm
by jacque
I keep this handler in my custom backscript and run it from the message box whenever I want to remove everything except the IDE and one of my own stacks that is always available. If you have a stack you don't want to remove, uncomment the filter line and add the stack name. Add a new filter line if you keep more than one stack open.

Code: Select all

on clearStacks -- delete non-IDE mainstacks from memory without saving
  put ideUserMainStacks() into tStacks -- LC function, internal loop
  --  filter tStacks without "whatever you want to keep"
  repeat for each line l in tStacks
    delete stack l
  end repeat
end clearStacks
Also, if you see the problem again you could just run ideUserMainStacks() in the message box to see what wasn't closed properly.

Re: unwanted fireworks

Posted: Wed Feb 08, 2023 9:21 pm
by Klaus
ideUserMainStacks(), go figure! :D
Cool, never heard of that before, thanks for the info.

Re: unwanted fireworks

Posted: Wed Feb 08, 2023 9:52 pm
by dunbarx
Another one of those fabulous undocumented gadgets.

Faster than "the Stacks". More powerful than the "StacksInUse". ...

Who has a list of them? Scotland? Martians?

Craig

Re: unwanted fireworks

Posted: Thu Feb 09, 2023 6:08 am
by jacque
It's part of the IDE scripts, not intended for public use. I found it a long time ago by trolling through the scripts for something I can't recall. There are a lot of useful things in there but they're internal to LC. This one isn't a LC function, it refers to a handler within the IDE which is why it isn't documented.