Found an error every time hitting Home button or switch app after updated to iOS 5.1

I have worked with cocos2d-x v.0.11 since iOS 5.0 and no error like this found when I updated my device to iOS 5.1 then it happens every time since then.
Note that, only on real device will get this error. Testing on simulator won’t reproduce this bug.

I created an universal app and tried to build application targeting on iOS 4.0, 4.1, 4.2, 4.3, 5.0 then 5.1, every test gets the same error (see the attached image).
I guess it’s probably about iOS 5.1.

Please correct me if this is fixed in cocos2d-x v.0.12 already. Thanks so much !


Screen Shot 2012-03-10 at 1.50.15 AM.png (22.9 KB)

I have tested with cocos2d-x v.0.12 and got an error (same for every time) as shown in the attached image.

Do I need to perform additional task to handle the case when application pauses or stop such as hitting Home key on device ?

Hey guys !

I have found a solution to this.
We have to stop/start the animation as well, this seems to be a proper handling as found in here http://www.cocos2d-iphone.org/forum/topic/7326.

This thread is closed :wink:

Note: I don’t have to do this for cocos2d-x v.0.11.