Re: How to tell when IDE is done loading

2014-12-28 Thread Michael Doub
Jacqueline, I do think that there is a timeing issue that you have to be aware of if you a calling revloadedstacks. But something strange _IS_ going on. Please create a stack and enter the script below into the stack script and save the stack and quit livecode. Doubleclick on the stack icon.

Re: How to tell when IDE is done loading

2014-12-28 Thread Mike Bonner
Things are working correctly for me. 7.0.0, (since 7.0.1 still won't install) When starting up the stack and IDE by opening the stack,false is first. After the IDE is fully open, allowinterupts seems to always be true for me. Not managing to duplicate the problem so far. I did adjust things so

Re: How to tell when IDE is done loading

2014-12-28 Thread Richard Gaskin
Mike Bonner wrote: Unless there is a wait with messages somewhere along the line in that big startup handler I mentioned in the previous post, the send that you do should be dumped at the end of the queue and not fire until things are done. I had thought so myself, but apparently it varies by

Re: How to tell when IDE is done loading

2014-12-28 Thread Michael Doub
Mike, Your plugin suggestion was a good one. When I removed them all I am now getting the expected behavior. I now need to add them back in one at a time to find the one that is not setting allowinterrupts to true. It does seem that allowinterupts is the correct vehicle to tell when the

Re: How to tell when IDE is done loading

2014-12-28 Thread J. Landman Gay
I'm still not sure you need to mess with any of this. What does your script need to do when the IDE finishes loading? On December 28, 2014 10:29:36 AM CST, Michael Doub miked...@gmail.com wrote: It does seem that allowinterupts is the correct vehicle to tell when the livecode part of the IDE

Re: How to tell when IDE is done loading

2014-12-28 Thread Michael Doub
This should help you see the problem I was trying to solve: Consider the following code: local ctr on openstack put OpenStack cr put the allowinterrupts cr after msg try put revloadedstacks() cr after msg catch err put revloadedstack not found cr err cr after

Re: How to tell when IDE is done loading

2014-12-28 Thread J. Landman Gay
On 12/28/2014 12:44 PM, Michael Doub wrote: Note that the OpenStack message is received before the initialization of the IDE has completed so when the revloadedstack function was called, it was not found. if you look at the IDE home stack, you will see the interrupts are blocked until all of

Re: How to tell when IDE is done loading

2014-12-28 Thread Mike Bonner
No suggestions really, because i'm not sure whats going on (he says, as he gets ready to make suggestions anyway). It seems that since all the plugins are a part of the sequence in that handler I mentioned, and that plugins are loaded before the allowinterupts is set, it seems that you'd end up

Re: How to tell when IDE is done loading

2014-12-28 Thread Michael Doub
Jacqueline gave me a really slick solution to my problem off list. He is what I am going to use in the next release of the MasterLibrary: on preopenstack send Mark_IDE_done to me in 2 ticks go to cd Splash end preopenstack on Mark_IDE_done try get revloadedstacks()

Re: How to tell when IDE is done loading

2014-12-27 Thread Michael Doub
Jacqueline and Mike, thanks for you help with this. Just to clarify, I am trying to solve the problem in the environment where livecode is not running and the user double clicks on the MasterLibrary stack. This is not a standalone program but a stack that is being started from the desktop.

Re: How to tell when IDE is done loading

2014-12-27 Thread J. Landman Gay
I'm confused. LiveCode knows how to open a stack as part of its startup routine. Since card 1 is always opened first, a preopenstack handler there will always fire and you can do your setup there from that card without worrying about timing. On December 27, 2014 10:12:19 AM CST, Michael Doub

Re: How to tell when IDE is done loading

2014-12-26 Thread J. Landman Gay
On 12/24/2014 11:57 AM, Michael Doub wrote: I have tried that but I need to process the resumeStack message which seems to get called as part of the startup process. Resumestack shouldn't be sent normally when a stack opens. There's a difference between starting up a standalone and starting

Re: How to tell when IDE is done loading

2014-12-26 Thread Mike Bonner
It looks like the IDE load order is this: System params are checked libraries loaded globals set preferences set icons loaded patterns loaded script editor loaded user icon libraries loaded error management loaded tools loaded menu bar loaded app overview loaded message box loaded debugger loaded

Re: How to tell when IDE is done loading

2014-12-24 Thread Michael Doub
I have tried that but I need to process the resumeStack message which seems to get called as part of the startup process. I guess I have to manually set a global flag and have the timed handler unblock the flag. What is the very first handler that an application can process? Startup? Is

How to tell when IDE is done loading

2014-12-23 Thread Michael Doub
How can you tell when the IDE is done loading? I am trying to figure out how to have the initialization of my app happen _after_ all of the IDE stacks have loaded. When my stack is double clicked from the desktop, my initialization code calls revloadedStacks() before the IDE has loaded it

Re: How to tell when IDE is done loading

2014-12-23 Thread J. Landman Gay
On 12/23/2014 2:44 PM, Michael Doub wrote: How can you tell when the IDE is done loading? I am trying to figure out how to have the initialization of my app happen _after_ all of the IDE stacks have loaded. When my stack is double clicked from the desktop, my initialization code calls