unwanted fireworks

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7227
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: unwanted fireworks

Post by jacque » Wed Feb 08, 2023 6:49 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7227
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: unwanted fireworks

Post by jacque » Wed Feb 08, 2023 9:10 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Klaus
Posts: 13820
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: unwanted fireworks

Post by Klaus » Wed Feb 08, 2023 9:21 pm

ideUserMainStacks(), go figure! :D
Cool, never heard of that before, thanks for the info.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9643
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: unwanted fireworks

Post by dunbarx » Wed Feb 08, 2023 9:52 pm

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

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7227
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: unwanted fireworks

Post by jacque » Thu Feb 09, 2023 6:08 am

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Talking LiveCode”