I am developing an app on iPod touch, that uses the camera, displays a preview and takes pictures (all that through an AVCaptureSession). What I don't understand is that my app sometimes gets killed by launchd after a memory warning...although it uses no more than 2 MB in RAM (see attached screenshot). The console tells me
Aug 16 15:16:35 Wiggler[109] <Warning>: Received memory warning. Level=1
...
Aug 16 15:16:58 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.tMyCompany.Wiggler[0xd83d]) Exited: Killed: 9
On the other hand, I can successfully run other apps that use tons of RAM (more than 100 MB) without any crash nor memory warning.
What is wrong with my app ? What am I missing ? Is it a bug or a memory leak within the AVFoundation (the framwork that provides AVCaptureSessions) ? I can't see why my app is killed while it uses so little memory...
Thanks for your help.