App quits immediately after startup

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
hbrewster
Posts: 4
Joined: Tue Apr 06, 2010 12:29 am

App quits immediately after startup

Post by hbrewster » Tue Apr 06, 2010 12:33 am

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

RRobert
Posts: 151
Joined: Sat Feb 28, 2009 8:20 pm

Re: App quits immediately after startup

Post by RRobert » Tue Apr 06, 2010 12:58 am

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

hbrewster
Posts: 4
Joined: Tue Apr 06, 2010 12:29 am

Re: App quits immediately after startup

Post by hbrewster » Tue Apr 06, 2010 1:00 am

But how do I open the stack in development mode
It always starts up in run mode and executes my script and quits

RRobert
Posts: 151
Joined: Sat Feb 28, 2009 8:20 pm

Re: App quits immediately after startup

Post by RRobert » Tue Apr 06, 2010 1:04 am

Main Menu - Tools - Pointer Tool or you click on the arrow with the small cross in the Tools palette.

Robert

hbrewster
Posts: 4
Joined: Tue Apr 06, 2010 12:29 am

Re: App quits immediately after startup

Post by hbrewster » Tue Apr 06, 2010 1:08 am

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

RRobert
Posts: 151
Joined: Sat Feb 28, 2009 8:20 pm

Re: App quits immediately after startup

Post by RRobert » Tue Apr 06, 2010 1:13 am

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

hbrewster
Posts: 4
Joined: Tue Apr 06, 2010 12:29 am

Re: App quits immediately after startup

Post by hbrewster » Tue Apr 06, 2010 1:20 am

Thanks
I was trying some old Windows tricks like holding down shift key and other combinations without any luck.

Post Reply