Is it possible to use exit (0) in application applicationDidEnterBackground: (UIApplication *) "?

My app crash when exiting after upgrading to sdk 4, error - poor memory access.

I realized that if I put "exit (0)" in "applicationDidEnterBackground: (UIApplication * application)", the application will work fine.

However, is this normal? This is my only "solution" to the problem so far.

NSZombie this time is not very useful ...

+1
source share
3 answers

If there is a problem with bad memory, I believe that the best solution should be to detect and fix the memory problem.

, " ", : . .

, , , , UIApplicationExitsOnSuspend Info.plist YES

+5

exit (0) applicationDidEnterBackground: ( UIApplication *).

Info.plist, , , , . . .

+1

I find the source of the problem. The problem is that I need to complete an entire task that affects the interface or views in the main thread. Having figured this out, we also decided to multiply the other errors that give me a random move. IOS 4 seems to more restrict thread usage

0
source

All Articles