Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

AppUi::Exit() vs User::Exit()

From Wiki
Jump to: navigation, search
Article Metadata
Created: vasant21 (07 Aug 2007)
Last edited: hamishwillee (03 Feb 2012)


  • User::Exit() terminates the current thread or current process ( If the current thread is the main thread in a process), cleaning up any resources used.
  • User::Exit() does not call the destructors, it forcefully cleans the resources.
  • This function cannot leave.


  • It closes the app UI , it stops the CONE environment, the active scheduler, and calls other functions, such as CCoeEnv::PrepareToExit() before destroying the environment.
  • AppUi::Exit() initiates systematic cleanup of the resources by calling destructor's and appropriate framework routines, hence it can leave even if it does not contain trailing "L".
This page was last modified on 3 February 2012, at 04:09.
28 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.