openStack handler not executing in simulator

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
nextyoyoma
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 37
Joined: Sat Oct 06, 2012 6:29 am

openStack handler not executing in simulator

Post by nextyoyoma » Tue Jan 14, 2014 7:02 pm

I have a simple application with only one card. preOpenStack works, but for whatever reason, anything I put in "openStack" doesn't get executed. If I have this on the stack:

Code: Select all

on openStack
answer "hello"
end openStack
then I get nothing when the app opens. But if I have a button with script

Code: Select all

on mouseUp
openStack
end mouseUp
and tap the button, it works fine. I have not tested this on an actual device. I'm using the 7.0.3 simulator. Anybody had any trouble with this or has a solution?

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: openStack handler not executing in simulator

Post by splash21 » Tue Jan 14, 2014 9:55 pm

Hi, nextyoyoma. If you have an error in your preOpenStack handler, then the openStack message won't be sent.

I just tried

Code: Select all

on openStack
   answer "Hello"
end openStack
on 7.0.3 and it worked OK, but if I add...

Code: Select all

on preOpenStack
   throw "Test"
end preOpenStack
then I see the problem. It's a bummer that LC fails silently on the simulator when an error occurs!
LiveCode Development & Training : http://splash21.com

nextyoyoma
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 37
Joined: Sat Oct 06, 2012 6:29 am

Re: openStack handler not executing in simulator

Post by nextyoyoma » Wed Jan 15, 2014 4:21 pm

Thanks, that was definitely the issue. The problem line was:

Code: Select all

set the fullscreenmode of this stack to “exactFit”
I'm on LC 6.5.0 rc 1 build 3002. LC says there is no update available. Is that accurate?

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

Re: openStack handler not executing in simulator

Post by Klaus » Wed Jan 15, 2014 4:38 pm

Current version is 6.5.1 Build 3012!

Post Reply

Return to “iOS Deployment”