GLBasic forum

Main forum => Bug Reports => Topic started by: Alex_R on 2015-Jul-08

Title: IOS 5 and IO6 crashes when quit the app?
Post by: Alex_R on 2015-Jul-08
Hi everyone and especially Spacefractal (our 64bits savior for IOS)  :good:

I have got several users complaining about my last game  (they said the game doesn't save sometimes the game status) :( I was a Little worried about that, but not too much because my App runs fine in my iPhone and iPad with ios 8.2 and 7.1.

I thought it was some system issues from those users. (All my friends can play fine with my game). But today I have learned that maybe it is a problem with IOS 5 or IOS 6. I am not at home and I can not test it these days. But I suspect that there is a crash when users quit the App (compiled with Spacefractal 64bits library). For some reason SUB GLB_ON_QUIT: function crashes the App and the game doesn't  save the game status. Is this possible?
Title: Re: IOS 5 and IO6 crashes when quit the app?
Post by: spacefractal on 2015-Jul-08
Don't use quit function to save data, but save the data on pause sub function instead.

Sometimes the quit call mighy newer called, when iOS system wipe out memory.

Nothing I'm can do really. It's a iOS quick.
Title: Re: IOS 5 and IO6 crashes when quit the app?
Post by: Alex_R on 2015-Jul-08
Ok. Thanks Space. I'll try your solution!  :)
Title: Re: IOS 5 and IO6 crashes when quit the app?
Post by: spacefractal on 2015-Jul-08
also use SUB GLB_ON_PAUSE: to save your data.

SUB GLB_ON_QUIT might newer been called on iOS and is quite unsafe on iOS.