×

Discussion Board

Results 1 to 7 of 7

Thread: KERN-EXEC Panic

  1. #1
    Regular Contributor
    Join Date
    May 2008
    Location
    India
    Posts
    172

    Question KERN-EXEC Panic

    Hi All,

    I have created an application with views, CEikTextListBox controls and a host of other controls. When I change the orientation of the screen, my application crashes and the emulator shows the following error - "App. close: ApplicationName KERN-EXEC 3". I have no clue as to how and where to begin debuggin this problem. Is there a way to find out which statement is causing this problem? Please help.

    Thanks,
    Shanker

  2. #2
    Super Contributor
    Join Date
    Jul 2007
    Posts
    596

    Re: KERN-EXEC Panic

    Have u checked ur callstack . kernexec3 comes when u r trying to work on a null pointer.


    Thanks

  3. #3
    Registered User
    Join Date
    May 2007
    Location
    Poland
    Posts
    606

    Re: KERN-EXEC Panic

    Hello,
    when you change orientation of the screen CCoeControl calls HandleResourceChange(TInt aType) function.
    I think you should start searching for the reason of error there.
    Some part of your code pasted here would make it easier to solve it

    Good luck

  4. #4
    Regular Contributor
    Join Date
    May 2008
    Location
    India
    Posts
    172

    Re: KERN-EXEC Panic

    Hi Kishore84,

    How do i get the callstack??
    I am using Carbide.c++ v 1.3 express edition.

    Thanks,
    Shanker

  5. #5
    Super Contributor
    Join Date
    Jul 2007
    Posts
    596

    Re: KERN-EXEC Panic

    on carbide it is very simple . just go to the debug mode (go to windows->openperspective->debug...). then u can see ur call stack.otherwise at right corner u could find to switch to various mode like debug, carbide c++.....

    Thanks

  6. #6
    Regular Contributor
    Join Date
    May 2008
    Location
    India
    Posts
    172

    Re: KERN-EXEC Panic

    Hi Kishore,

    I added the following code to my applications AppUI -

    void CVAppUi::HandleResourceChangeL(TInt aType)
    {
    // CAknViewAppUi::HandleResourceChangeL(aType);

    //
    // if (aType == KEikDynamicLayoutVariantSwitch)
    // {
    // iAppView->SetRect(ClientRect());
    // }
    }

    You may notice some of the code commented. If the code is uncommented my application crashes showing KERN-EXEC 3 error, otherwise, I am able to switch from portrait to landscape view, and vice versa, but my screen look broken and incomplete. How do I redraw screen? Please help.

    Thanks,
    Shanker

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: KERN-EXEC Panic

    If you enable "Just In Time debugging" in emulator preferences, it will show the exact location of the crash.
    Since your iAppView is most probably not NULL (though you can check it for making sure), the next thing to check would be SizeChanged method of your AppView object. But it is easier letting the debugger to catch the panic.

Similar Threads

  1. KERN EXEC 3 while deleting listbox
    By hansapariya in forum Symbian
    Replies: 4
    Last Post: 2008-03-29, 09:09
  2. Replies: 4
    Last Post: 2008-03-05, 09:30
  3. Using Bluetooth serial port in MIDlets (nokia 9500 issue)
    By orsteglasy in forum Mobile Java Networking & Messaging & Security
    Replies: 11
    Last Post: 2007-10-07, 21:49
  4. Replies: 2
    Last Post: 2007-07-19, 01:29
  5. why kern exec 3 on CopyFile?
    By flicker82 in forum Symbian
    Replies: 2
    Last Post: 2005-05-16, 02:25

Posting Permissions

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