Page 1 of 1
App quits immediately after startup
Posted: Tue Apr 06, 2010 12:33 am
by hbrewster
on openCard I did some work and put a short delay and then the "quit" command
When I open the stack for development it immediately goes to run mode and quits
How do I open the application for development only
Re: App quits immediately after startup
Posted: Tue Apr 06, 2010 12:58 am
by RRobert
Tick Messages in the Toolbar to prevent that the openCard message is being sent and open the stack.
In general you could use something like:
Code: Select all
if the environment = "development" then
close this stack
else
quit
end if
Robert
Re: App quits immediately after startup
Posted: Tue Apr 06, 2010 1:00 am
by hbrewster
But how do I open the stack in development mode
It always starts up in run mode and executes my script and quits
Re: App quits immediately after startup
Posted: Tue Apr 06, 2010 1:04 am
by RRobert
Main Menu - Tools - Pointer Tool or you click on the arrow with the small cross in the Tools palette.
Robert
Re: App quits immediately after startup
Posted: Tue Apr 06, 2010 1:08 am
by hbrewster
can't open stack
create a test stack with this code
on openCard
wait 2000 milliseconds
quit
end openCard
save the stack and exit then try to open it again. It will wait 2secs and shutdown
Re: App quits immediately after startup
Posted: Tue Apr 06, 2010 1:13 am
by RRobert
Start RunRev - Tick Messages - Open your stack.
I pasted your code into a empty stack and it works. The openCard message will not be fired if Messages are disabled.
Robert
Re: App quits immediately after startup
Posted: Tue Apr 06, 2010 1:20 am
by hbrewster
Thanks
I was trying some old Windows tricks like holding down shift key and other combinations without any luck.