- iPhone Newbie
- 11 Posts
many apps in multitasking kill my app
I have a problem with a new application. I realized that it is very unstable when there are many
applications open in the background.
I cleaned up my code and uses the "release", "nil" and I checked the leaks.
Are there a function to prevent the application in background kill mine?
Did I miss something?
You can test, it is free this week:
on AppStore => Baby, try To Speak 1
Thank you for your help
- 11-29-2011, 04:22 AM #2iPhone Newbie
- 35 Posts
By now you should switch to iOs5, using the ARC automatic reference counting - that will save you some headaches with memory management.
In general, your App should not use more then 20 - 30 MB memory, otherwise it will likely be killed. The amount of apps "running" in the background should not matter too much, as they are not really running, and will be kicked out themselves when memory is getting low. Also, not all apps you see in the task bar when you double-click on the home button are indeed running, some are already killed and will restart completely when you press them.
There is no way to prevent being killed from the system when it wants to kill you - it's a hard life as an app
- 12-12-2011, 08:50 AM #3iPhone Newbie
- 14 Posts
You may easy check where is a problem or even try to solve this.
Use applicationDidReceiveMemoryWarning - you have 3 levels of this warning. 1. Is rather information and suggestion, rest need to be solved. You may try to release some unused resources (I'm assuming you correctly release objects), ARC may help with it, but if you use too much images/sounds (very memory consuming) there maybe a problem.
- 12-12-2011, 12:08 PM #4