×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Regular Contributor
    Join Date
    Feb 2007
    Posts
    56

    kern-exec 3 problem

    Hi

    When I close my application using iAppUi->Exit() I gets kern-exec 3 panic.
    I tried to put break point in the app ui destructor but it doesn't get there yet.

    Regards,
    Noam

  2. #2
    Regular Contributor
    Join Date
    Jul 2007
    Location
    Bangalore
    Posts
    91

    Re: kern-exec 3 problem

    can u please share ur IDE and Platform information.

  3. #3
    Regular Contributor
    Join Date
    Feb 2007
    Posts
    56

    Re: kern-exec 3 problem

    Hi

    carbide.c 1.2.2 s60 3rd_MR

    hope it helps.

    Noam

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,568

    Re: kern-exec 3 problem

    If it happens in the emulator, you should enable Just In Time debugging in the preferences. Then you will get a break when the panic occurs, and you will quickly find the problematic code in the call stack.

  5. #5
    Regular Contributor
    Join Date
    Apr 2007
    Location
    beijing,china
    Posts
    496

    Re: kern-exec 3 problem

    kern-exec 3 error often be caused by pointer, look careful at your pointer, not new,not delete, should not be deleted.....
    heaven or dell? survival or death?

  6. #6
    Regular Contributor
    Join Date
    Mar 2006
    Location
    Bangalore
    Posts
    148

    Post Re: kern-exec 3 problem

    Generally you get the KernExec-3 panic, if your application has not released all the resources ( RClass handles ) or freed heap based objects when trying to terminate. Check your dtor.
    Regards,
    Pavan M.V
    ________________________________

    Email: pavan.mysore@symbian.com /pavan.vishu@gmail.com

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,568

    Re: kern-exec 3 problem

    Quote Originally Posted by pavanmv View Post
    Generally you get the KernExec-3 panic, if your application has not released all the resources ( RClass handles ) or freed heap based objects when trying to terminate. Check your dtor.
    It is just not true. KERN-EXEC 3 is typically the "NULL panic", however it has other meanings as well.
    The basic "leak panic" is the ALLOC for example.

  8. #8
    Regular Contributor
    Join Date
    Mar 2006
    Location
    Bangalore
    Posts
    148

    Post Re: kern-exec 3 problem

    Hi,

    Yeah i agree its not completely true but does happen sometimes.
    Another issue this can occur is in case of stack overflow.

    Here is a transcript from device creators doclib

    Warning: stack overflow == KE3
    Always be aware to check whether you’re suffering from a stack overflow
    A stack overflow will cause unexplainable KERN-EXEC 3 errors
    Regards,
    Pavan M.V
    ________________________________

    Email: pavan.mysore@symbian.com /pavan.vishu@gmail.com

  9. #9
    Regular Contributor
    Join Date
    Jul 2007
    Location
    Bangalore
    Posts
    91

    Re: kern-exec 3 problem

    Generally you get the KernExec-3 panic, if your application has not released all the resources ( RClass handles ) or freed heap based objects when trying to terminate. Check your dtor.
    We dont get a KERN-EXEC3 for improper heap deallocation, we get Alloc panics.

    KERN-EXEC3 is raised when an unhandled exception occurs. Exceptions have many causes, but the most common are access violations caused, for example, by dereferencing NULL. Among other possible causes are: general protection faults, executing an invalid instruction, alignment checks, etc.
    Stack overflow should fit into protection faults category.
    Cheers
    Subhasis

  10. #10
    Regular Contributor
    Join Date
    Mar 2006
    Location
    Bangalore
    Posts
    148

    Post Re: kern-exec 3 problem

    Hey i am really sorry, in my previous post i was referring to Kern exec 0.

    Another reason you could end up with a Kern-Exec 3 when you are exiting the application, is when you have registered a view and manually try deleting it. This is because the view server will takecare of deletion of the views, if you have explictly deleted it, then when the view server tries to delete the same, it will end up with a Kern-Exec 3
    Regards,
    Pavan M.V
    ________________________________

    Email: pavan.mysore@symbian.com /pavan.vishu@gmail.com

  11. #11
    Registered User
    Join Date
    Jan 2004
    Location
    Tübingen, Germany
    Posts
    31

    Re: kern-exec 3 problem

    Hi pavanmv! Thanks so much, that was exactly the right advice for me. I deleted my view manually...

  12. #12
    Registered User
    Join Date
    Mar 2009
    Posts
    47

    Smile Re: kern-exec 3 problem

    Quote Originally Posted by wizard_hu_ View Post
    If it happens in the emulator, you should enable Just In Time debugging in the preferences. Then you will get a break when the panic occurs, and you will quickly find the problematic code in the call stack.

    Could you please give me some information, help me to enable Just In Time debugging in the preferences?
    Thanks very much!!

  13. #13
    Registered User
    Join Date
    Oct 2008
    Location
    Noida, India
    Posts
    126

    Re: kern-exec 3 problem

    you can use User::Exit(0) instead of only exit.

  14. #14
    Registered User
    Join Date
    Mar 2009
    Posts
    47

    Re: kern-exec 3 problem

    Quote Originally Posted by nehasaxena View Post
    you can use User::Exit(0) instead of only exit.
    I'm afraid it's unsuitable.

    Exit() is the function of CAknAppUiBase.

    AppFrame will do some cleanning works.

  15. #15
    Registered User
    Join Date
    Mar 2009
    Posts
    47

    Re: kern-exec 3 problem

    Quote Originally Posted by nokia_wangyu View Post
    Could you please give me some information, help me to enable Just In Time debugging in the preferences?
    Thanks very much!!
    Does anyone know how to use 'Just In Time debugging '?

    thank for your response.

Similar Threads

  1. netcards - Problem with opening adapter
    By kernj in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-01-10, 08:56
  2. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36
  3. please help! setting page issue (checkbox) kern exec 3
    By flicker82 in forum Symbian User Interface
    Replies: 4
    Last Post: 2005-02-10, 12:57
  4. 7210 Silent Problem
    By MarkMckim in forum Mobile Java General
    Replies: 1
    Last Post: 2003-03-18, 12:36
  5. DirectGraphics/fillPolygon and KERN - EXEC 3 on 7650
    By andrew_nevick in forum Mobile Java General
    Replies: 0
    Last Post: 2003-03-03, 09:15

Posting Permissions

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