Page 1 of 1

openStack handler not executing in simulator

Posted: Tue Jan 14, 2014 7:02 pm
by nextyoyoma
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?

Re: openStack handler not executing in simulator

Posted: Tue Jan 14, 2014 9:55 pm
by splash21
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!

Re: openStack handler not executing in simulator

Posted: Wed Jan 15, 2014 4:21 pm
by nextyoyoma
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?

Re: openStack handler not executing in simulator

Posted: Wed Jan 15, 2014 4:38 pm
by Klaus
Current version is 6.5.1 Build 3012!