Talk:AppUi::Exit() vs User::Exit()
This article explains very well the difference between using AppUi::Exit() and User::Exit(). Usually it is advised to exit any application using AppUi::Exit() instead of User::Exit(). The explanation on why this is essential has been highlighted very well in this article.
FYI: AppUi::Exit() DOES leave even in normal conditions, with the special leave code KLeaveExit (-1003). This way it breaks the execution of the function from where it was called, and the Active Scheduler of the current thread catches this code and stops the scheduler. --mrtj 13:28, 18 January 2011 (UTC)