Gesture + os.exit() = ipad crash

Hi there!
I’m working on a game, which has to look for update every time before it start to run. Also, I have some situations, where I don’t want to leave the game (for example, when the user has to autenticate on facebook).

To solve this, I set the UIApplicationExitsOnSuspend to false, and monitor when the app is suspended. When I need it to exit, I call os.exit, when I don’t need it to exit I do nothing and it is suspended.

When using the back button, there is no problem, but when the user uses the gesture which minimize the app, the ipad gets locked and don’t accept any input on screen. In the worst case, the ipad had to be reset do work again.

Do you have any tips in how to solve, or workaround this? [import]uid: 50425 topic_id: 31436 reply_id: 331436[/import]

Never call os.exit() in app you are submitting - Apple will reject. It’s not for live apps to use - the users will exit your app themselves from the dock. [import]uid: 52491 topic_id: 31436 reply_id: 125675[/import]

Never call os.exit() in app you are submitting - Apple will reject. It’s not for live apps to use - the users will exit your app themselves from the dock. [import]uid: 52491 topic_id: 31436 reply_id: 125675[/import]