Unload when app exits?

When some one force quit a game/app, do i need to unload all resources like pictures and sprites myself? Or will iPhone handle that itself?

Thanks in advance! [import]uid: 74723 topic_id: 12394 reply_id: 312394[/import]

Each app has its own kind of virtual memory area. When an app is terminated, its entire virtual memory disappears and the physical memory is reclaimed by the operating system. Even if you dont release the object that you owned that memory will be returned to the system when you terminate the app.

So technically, when your app terminates there is no need to release any of the objects you currently have allocated. Object release is important only when you application is running, not when it quits. [import]uid: 71210 topic_id: 12394 reply_id: 45165[/import]

Thank you for the quick reply and information [: [import]uid: 74723 topic_id: 12394 reply_id: 45166[/import]

Maybe you want to save state or something when your app ends and then reload it when the app starts again.

Look at this thread then
http://developer.anscamobile.com/forum/2010/10/12/does-eventtype-applicationexit-actually-work [import]uid: 22737 topic_id: 12394 reply_id: 45176[/import]