Does Mobgui cause my app to crash?

This is the place to discuss anything relating to MobGUI

Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21

Post Reply
askari
Posts: 19
Joined: Fri Jul 01, 2011 11:45 pm

Does Mobgui cause my app to crash?

Post by askari » Tue Aug 16, 2011 5:18 am

This may not be related to Mobgui so excuse me if that's the case. To get my app running in the iphone simulator, I had to comment out this mobgui reference;
"-- mobGUIUntouch the long id of me " thereafter I successfully run the app in the simulator. With my latest changes however when I attempt to test on the iphone it doesn't launch.

Before I commented those lines, I had run into the issue of app not launching but it seemed to be resolved if I renamed the stack file however that does not seem to work anymore.

Any help or direction to the correct forum is appreciated.

Thanks much

askari
Posts: 19
Joined: Fri Jul 01, 2011 11:45 pm

Re: Does Mobgui cause my app to crash?

Post by askari » Wed Aug 17, 2011 3:10 am

I was able to run my app after restarting my computer, but now the mobgui buttons do not work?
I wonder if the mobgui library is attached correctly? From the stack browser I see a substack named MobGUILib-131_______.88__ but unless I open MobGui I get script errors when trying to click on a button during development.

The script for one of my group buttons is pasted below( i changed environment to mobile to have it run on the iphone).

on touchEnd pId
mobGUIUntouch the long id of me
visual effect push left fast
go card "ls1"
#go next card
end touchEnd
on touchRelease pId
mobGUIUntouch the long id of me
end touchRelease
on touchStart pId
mobGUITouch the long id of me
end touchStart
on mouseUp
if the environment = "mobile" then touchEnd 1
end mouseUp
on mouseRelease
if the environment = "mobile" then touchRelease 1
end mouseRelease
on mouseDown
if the environment = "mobile" then touchStart 1
end mouseDown

askari
Posts: 19
Joined: Fri Jul 01, 2011 11:45 pm

Re: Does Mobgui cause my app to crash?

Post by askari » Wed Aug 17, 2011 10:59 pm

Created the app from scratch now it's working ok.

Thanks

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

Re: Does Mobgui cause my app to crash?

Post by splash21 » Thu Aug 18, 2011 10:44 am

do you still have the original stack that didn't work? It would be good to have a look at it if possible - I didn't get the same problem :?
Good to hear that it's resolved, though :D
LiveCode Development & Training : http://splash21.com

Post Reply

Return to “MobGUI”