Check if a stack is loaded at runtime

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

Check if a stack is loaded at runtime

Post by ale870 » Wed Dec 02, 2009 11:10 am

Hello,

I have a problem: I cannot find a way to determine if a stack is loaded in memory at runtime (not in the development environment).
All functions I found can be used only in dev environment (the openFiles, revLoadedStacks).

I open a stack from another stack, then I need to close (and remove from memory) the first stack: so I need to check if the first stack was correctly removed.

Can you help me?

Thank you!
Runtime Revolution Widgets, tutorials, tips & tricks and more!
http://runrevwidgets.com/wiki

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Check if a stack is loaded at runtime

Post by Klaus » Wed Dec 02, 2009 12:11 pm

Hi ale870,

"the openstacks" works fine for me in my runtimes.


Best

Klaus

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Re: Check if a stack is loaded at runtime

Post by malte » Wed Dec 02, 2009 12:26 pm

revLoadedStacks also works in a standalone. The openstacks will return something only if the stack is really open (in other words has a window). You can also check

there is a stack "yourStackNameHere"

Hope that helps,

Malte

ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

Re: Check if a stack is loaded at runtime

Post by ale870 » Thu Dec 03, 2009 2:17 pm

I tried both of them, executing them in a standalone executable, but it seems they return empty lists.
i will make more tests.
Thank you!
Runtime Revolution Widgets, tutorials, tips & tricks and more!
http://runrevwidgets.com/wiki

Post Reply