×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    May 2009
    Posts
    89

    KERN-EXEC 0 on exit

    Hi

    I get a KERN-EXEC 0 panic when I try to exit my application on the end button using User::Exit() from my AppUi::HandleWsEventL(). If I handle a menu command and run User::Exit() from the view everything works fine. Does anyone know what this could be? I've set breakpoints in all the destructors and they don't even get called before the panic.

    //T

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,751

    Re: KERN-EXEC 0 on exit

    Quote Originally Posted by ojve View Post
    I get a KERN-EXEC 0 panic when I try to exit my application on the end button using User::Exit() from my AppUi::HandleWsEventL(). If I handle a menu command and run User::Exit() from the view everything works fine. Does anyone know what this could be?
    Do not use User::Exit. Otherwise yes, it is hard to find out, especially because HandleCommandL is likely invoked by HandleWsEventL. You may try invoking HandleWsEventL of the parent class, then User::Exit.
    I've set breakpoints in all the destructors and they don't even get called before the panic.
    This comment clearly shows that you have no idea about what User::Exit does. An other reason for not using it. Note that AppUi::Exit and User::Exit are two different things.

  3. #3
    Regular Contributor
    Join Date
    May 2009
    Posts
    89

    Re: KERN-EXEC 0 on exit

    Ok, thank you.

    It turned out I didn't even capture the key in my AppUi, but now I managed to do it and I don't get the panic anymore.

    Why shouldn't I use User::Exit()? What the difference between User::Exit(), AppUi::Exit() and AppUi::RunAppShutter()? Checked the docs, but they don't really exlpain that well...

    //T

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,751

    Re: KERN-EXEC 0 on exit

    User::Exit shuts down the thread (and most likely the process) immediately. It is the same as RThread::Exit. So the thread ceases to exist at once, the typical "all unsaved data is going to be lost" situation.

Similar Threads

  1. Kern Exec 3 on exit
    By mallikachand in forum Symbian User Interface
    Replies: 8
    Last Post: 2010-07-23, 10:32
  2. EXit() returns Kern Exec 3 panic
    By jey_ in forum Symbian
    Replies: 5
    Last Post: 2009-03-03, 14:17
  3. KERN EXEC 3 on device not on Epoc
    By Kavit Patel in forum Symbian
    Replies: 4
    Last Post: 2008-11-21, 15:02
  4. 'Kern exec 3' on exit of multipage dialog
    By hansapariya in forum Symbian
    Replies: 6
    Last Post: 2008-07-23, 08:10
  5. N70 Reset bug
    By sebboB in forum General Development Questions
    Replies: 2
    Last Post: 2005-12-28, 23:09

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×