×

Discussion Board

Results 1 to 13 of 13
  1. #1
    Regular Contributor
    Join Date
    Jul 2012
    Posts
    82

    Getting error Panic KERN-EXEC 0

    Hi,

    I am taking the reference of the code http://www.developer.nokia.com/Commu...ple_recipients to send the message to the multiple Numbers.

    From send msg API first i called to send the sms on the first number.

    iSmsHandler->SendL(PhoneNumber1,SmsText); //PhoneNumber1 contains my first number.

    After that as suggested

    i added the second number in side TBool CSmsHandler::CreateMsgL()
    like:->

    TBuf<15> PhoneNumber2;
    PhoneNumber2.Copy(_L("9999999999"));
    iSmsMtm->AddAddresseeL( PhoneNumber2, entry.iDetails );


    But when i am debugging this code i am getting error Panic KERN-EXEC 0.


    Please suggest for the same.


    Thanks & Regards
    Alok Nath Khanna.

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,544

    Re: Getting error Panic KERN-EXEC 0

    Looking at the description for Kern Exec 0 from the docs which states
    This panic is raised when the Kernel cannot find an object in the object index for the current process or current thread using the specified object index number (the raw handle number).

    The most common reason for this is trying to use a kernel-side resource without first having sucessfully created it or sucessfully opened it. Typically, such resources are created or opened through user side handles, which are instances of classes derived from RHandleBase, for example, RLibrary, RThread, RProcess, RSemaphore etc. [Note that this list is not exhaustive].

    For example, a call to RLibrary::Lookup() panics with KERN-EXEC 0 if not preceded by a successful call to RLibrary::Load().
    I am tempted to think that the problem is elsewhere. Bad handle usage..some R-Class related maybe

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Getting error Panic KERN-EXEC 0

    Yep, basically you should check which line is actually giving the error, and then seeing which R-Class is used there, and check whether there is any error returned when you attempt to open/connect the R-Class instance.

    And if its really the lines you are showing, then do check that you really do get KERN-EXEC 0, and not something else.

  4. #4
    Regular Contributor
    Join Date
    Jul 2012
    Posts
    82

    Re: Getting error Panic KERN-EXEC 0

    Quote Originally Posted by symbianyucca View Post
    Yep, basically you should check which line is actually giving the error, and then seeing which R-Class is used there, and check whether there is any error returned when you attempt to open/connect the R-Class instance.

    And if its really the lines you are showing, then do check that you really do get KERN-EXEC 0, and not something else.

    YES I SOLVED THIS ISSUE BUT THE EXAMPLE GIVEN IN THE LINK MENTIONED BELOW IS NOT WORKING.
    WHEN I AM TRYING TO SEND THE SMS IT IS IN THE QUEUE FOR THE LONG TIME AFTER THIS IT FAILED.

    please suggest.

    Link from which i took the reference is below:->
    http://www.developer.nokia.com/Commu...ple_recipients to send the message to the multiple Numbers.

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,694

    Re: Getting error Panic KERN-EXEC 0

    Quote Originally Posted by akki123 View Post
    IT FAILED.
    AND HOW DOES IT FAIL? WHAT HAPPENS?
    please suggest.
    I would suggest sticking with the regular writing style, most of the time use lower case letters, and use capital letters at the beginning of sentences, and for the first characters of proper names/nouns.

  6. #6
    Regular Contributor
    Join Date
    Jul 2012
    Posts
    82

    Re: Getting error Panic KERN-EXEC 0

    Quote Originally Posted by wizard_hu_ View Post
    AND HOW DOES IT FAIL? WHAT HAPPENS?I would suggest sticking with the regular writing style, most of the time use lower case letters, and use capital letters at the beginning of sentences, and for the first characters of proper names/nouns.
    Sorry For improper format.

    When i am trying to send the sms on two number on the device both msg are in outbox & after some times it failed. "Error not able to send the sms".

    when i am trying it with single number then its ok. it is working.


    Now please suggest.

  7. #7
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,034

    Re: Getting error Panic KERN-EXEC 0

    You mean you try to send two SMS's simultaneously one after other to two different numbers?

    EDIT: ok now i saw the code to send sms to multiple recipients (http://www.developer.nokia.com/Commu...ple_recipients)

    Though i have not tried it personally but it might an older issue :

    http://www.developer.nokia.com/Commu...pients+failing
    Last edited by vineet.jain; 2012-12-06 at 11:18.

  8. #8
    Regular Contributor
    Join Date
    Jul 2012
    Posts
    82

    Re: Getting error Panic KERN-EXEC 0

    [QUOTE=vineet.jain;907584]You mean you try to send two SMS's simultaneously one after other to two different numbers?

    EDIT: ok now i saw the code to send sms to multiple recipients (http://www.developer.nokia.com/Commu...ple_recipients)

    Though i have not tried it personally but it might an older issue :

    http://www.developer.nokia.com/Commu...pients+failing[/QUOT

    i didn't found any solution for the same.
    If this example is not working then please suggest for another example.

  9. #9
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Getting error Panic KERN-EXEC 0

    You could always try for example the RSendAs API, and make the messages one-by-one with it.

  10. #10
    Registered User
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    639

    Re: Getting error Panic KERN-EXEC 0

    Quote Originally Posted by akki123 View Post
    If this example is not working then please suggest for another example.
    Hello,
    i've just tried the example on E7-00 (Nokia Belle) and it's working fine as suggested in the article.
    Just added the second number in SmsHandler.cpp::CreateMsgL() :
    Code:
    iSmsMtm->AddAddresseeL( iRecipientNumber, entry.iDetails );
        TBuf<15> PhoneNumber2;
        PhoneNumber2.Copy(_L("<a real phone number>"));
        TRAPD(error,iSmsMtm->AddAddresseeL( PhoneNumber2, entry.iDetails ));
        if(error!=KErrNone)
        	{
        	TInt a=1;
        	}
    no leave raised, two msgs sent. So the example/article seems fine.
    Regards,
    pg

  11. #11
    Registered User
    Join Date
    Feb 2004
    Posts
    1,980

    Re: Getting error Panic KERN-EXEC 0

    Emulator or Real device?

  12. #12
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Getting error Panic KERN-EXEC 0

    Quote Originally Posted by r60600 View Post
    Emulator or Real device?
    E7-00 (Nokia Belle) sounds like device to me ..

  13. #13
    Registered User
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    639

    Re: Getting error Panic KERN-EXEC 0

    Yes, real device.

Similar Threads

  1. Replies: 51
    Last Post: 2012-02-29, 06:57
  2. Panic KERN-EXEC 3 Error
    By vshnuforu@yahoo.co.in in forum Symbian Networking & Messaging (Closed)
    Replies: 23
    Last Post: 2010-11-16, 12:51
  3. panic kern exec 3 error need help
    By urban37 in forum Symbian User Interface
    Replies: 13
    Last Post: 2008-12-17, 08:24
  4. Replies: 5
    Last Post: 2008-12-12, 09:42
  5. KERN-EXEC Panic
    By nair.shanker in forum Symbian
    Replies: 6
    Last Post: 2008-10-15, 11:58

Posting Permissions

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