I have an application which streams video on a N95. When starting the camera (by opening the camera lid) the application shuts down for some reason.
I've figured out that the reason is probably because the device runs low on memory, and since the camera has higher priority the system shuts down my application.
1. I've tried calling CEikonEnv::Static()->SetSystem(ETrue) so that camera does not start instead of my application gets shut down. That worked exactly once, now it's back to normal i.e. my application gets shut down, anyone knows why?
2. I like to get verified that it is indeed the memory that runs low so I've tried to listen to some system events by overriding some functions. HandleError(), HandleWsEventL(), HandleSystemEventL() in CEikAppUi don't get called when my app shuts down. CEikAppUi::HandleCommandL() gets EEikCmdExit command, but no reason for the shutdown is provided. CEikDocument::SaveL() really should be called according the the function description, but isn't. Does anyone know of addional ways to find out why my application gets shut down?