In My application ,i was calling CAknViewAppUi::Exit() when user clicks on Exit menu option or exit soft key.Then It was giving panic on Emulator but not on device.When i used User::Exit() then panic disappeared. Can Anyone please explain Why it happened so. thanks
Hi, Yes You are absolutely right ..It is due to memory leak ..I cross checked it in HelloWorldPlus Example. I used APPui::Exit() ,put a memory leak and it panicked in debug build with orphaned cell no but when i used User::Exit(0) ,No panic appeared.
Perhaps User::Exit(0) does not call destructors (and therefore does not call framwoprk routines that causes panics).It forcefully cleans all resources...Am I right???
Perhaps User::Exit(0) does not call destructors (and therefore does not call framwoprk routines that causes panics).It forcefully cleans all resources...Am I right???
Forum posts: 732
Terminates the current thread, specifying a reason. All child threads are terminated and all resources are cleaned up.
If the current thread is the main thread in a process, the process is also terminated.
CEikAppUi::Exit()
Closes the app UI.
The above has been taken from the SDK help.
But you haven't mention what kind of an error/panic you are getting! Without which how can one derive into a solution?
Forum posts: 98
Forum posts: 98
Forum posts: 732
You may also visit this url: Display the extended panic code in Emulator or Device.Â
Forum posts: 98
Yes You are absolutely right ..It is due to memory leak ..I cross checked it in HelloWorldPlus Example. I used APPui::Exit() ,put a memory leak and it panicked in debug build with orphaned cell no but when i used User::Exit(0) ,No panic appeared.
Perhaps User::Exit(0) does not call destructors (and therefore does not call framwoprk routines that causes panics).It forcefully cleans all resources...Am I right???
Forum posts: 732
You are right.