简体   繁体   中英

iPhone app crashes after loading it from background

I have an app that crashes when i try to load it after it has been put in the background.
The first few times i put it in the background and relaunch it by multi-tasking (ie double clicking the home button and getting the app in foreground) it works fine.

But if i keep putting it in background and keep re launching it after a few time it crashes and gives me the below error:


* __NSAutoreleaseNoPool(): Object 0x76d6e90 of class NSCFString autoreleased with no pool in place - just leaking 2010-09-15 20:38:39.199 Snake[15192:ee27]  __NSAutoreleaseNoPool(): Object 0x76d4880 of class NSException autoreleased with no pool in place - just leaking 2010-09-15 20:38:39.200 Snake[15192:ee27]  __NSAutoreleaseNoPool(): Object 0x76b3c90 of class _NSCallStackArray autoreleased with no pool in place - just leaking 2010-09-15 20:38:39.200 Snake[15192:ee27]  __NSAutoreleaseNoPool(): Object 0x76cbc30 of class _NSCallStackArray autoreleased with no pool in place - just leaking 2010-09-15 20:38:39.201 Snake[15192:ee27]  __NSAutoreleaseNoPool(): Object 0x76c6db0 of class NSCFString autoreleased with no pool in place - just leaking 2010-09-15 20:38:39.202 Snake[15192:ee27]  __NSAutoreleaseNoPool(): Object 0x78e5000 of class NSCFString autoreleased with no pool in place - just leaking 2010-09-15 20:38:39.203 Snake[15192:ee27]  __NSAutoreleaseNoPool(): Object 0x76c6a90 of class NSConcreteMutableData autoreleased with no pool in place - just leaking 2010-09-15 20:38:39.207 Snake[15192:ee27] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'No background task exists with identifier 8'
Everytime the app crashes there is a different identifier number.

Does anyone know why this is happening?

您需要查看崩溃报告以获取有关问题发生位置的一些帮助。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM