×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    24

    crashed application

    Hi.
    My application on Communicator Nokia 9500 has error. The message looks like this
    Program closed. Reason code: KERN-EXEC. Reason number: 3.
    What should I do?

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

    Re: crashed application

    In most cases, KERN-EXEC 3 denotes a NULL pointer exception. You should try to check your uninitialized pointers and/or debug your code if it can be executed in the emulator.

  3. #3
    Registered User
    Join Date
    Jan 2006
    Posts
    24

    Re: crashed application

    Quote Originally Posted by wizard_hu_
    In most cases, KERN-EXEC 3 denotes a NULL pointer exception. You should try to check your uninitialized pointers and/or debug your code if it can be executed in the emulator.
    Thanks.
    But the problem is that the code is executed in the Emulator,
    while error occurs when the code is executed in the Communicator.
    I believed that the error resulted from char* type used.
    But having changed void Preview(TInt aFontSize, char* aFmt1, ...) into
    void Preview(TInt aFontSize, __e32_va_list aFmt1, ...) the code still runs in the Emulator succesfully, while the same error remains in the Communicator.

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

    Re: crashed application

    In this case, you should create a logfile, and see where the problem happen.

  5. #5
    Registered User
    Join Date
    Jan 2006
    Posts
    24

    Re: crashed application kern-exec 3

    Quote Originally Posted by wizard_hu_
    In this case, you should create a logfile, and see where the problem happen.
    I'm new in Symbian, so tell me the simpliest way where to create a logfile, as well as the references how to create it?

  6. #6
    Regular Contributor
    Join Date
    Mar 2005
    Location
    Bangalore,India
    Posts
    306

    Re: crashed application

    1) Simple debug-msg method
    User::InfoPrint(_L("Debug")); -->it doesnt work on S60 phones... not sure abt 9500

    2) simple file-based method
    //at the beginning of function
    RFile file;
    TBuf8<100>text8;
    TBuf<100>text;
    TInt fileSize;
    file.Replace( CEikonEnv::Static()->FsSession(), _L("C:\\debug.txt"), EFileWrite );
    CleanupClosePushL( file );


    //where u want to add entry to log
    file.Size( fileSize );
    file.Seek( ESeekStart, fileSize );
    text.Copy(aAddress);
    text.Append( _L("\n") );
    text8.Copy( text );
    file.Write( text8 );

    //at the end of function
    CleanupStack::PopAndDestroy( &file );

  7. #7
    Registered User
    Join Date
    Jan 2006
    Posts
    24

    Re: crashed application

    Quote Originally Posted by SymbianSandy
    1) Simple debug-msg method
    User::InfoPrint(_L("Debug")); -->it doesnt work on S60 phones... not sure abt 9500

    2) simple file-based method
    //at the beginning of function
    RFile file;
    TBuf8<100>text8;
    TBuf<100>text;
    TInt fileSize;
    file.Replace( CEikonEnv::Static()->FsSession(), _L("C:\\debug.txt"), EFileWrite );
    CleanupClosePushL( file );


    //where u want to add entry to log
    file.Size( fileSize );
    file.Seek( ESeekStart, fileSize );
    text.Copy(aAddress);
    text.Append( _L("\n") );
    text8.Copy( text );
    file.Write( text8 );

    //at the end of function
    CleanupStack::PopAndDestroy( &file );

    Many thanks I'll try this.

Similar Threads

  1. How to debug console application with CW3.1 and 3rd edition ?
    By 3rdparty in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2006-02-01, 17:40
  2. Cannot launch application after installation
    By Gayathri Lokesh in forum General Development Questions
    Replies: 0
    Last Post: 2006-01-05, 14:00
  3. Application skips many times when I click the application
    By bb_sathya in forum Mobile Java General
    Replies: 0
    Last Post: 2005-12-20, 04:49
  4. Replies: 3
    Last Post: 2005-09-16, 03:37
  5. Memory Full Error on Nokia6600 running MIDlet Application
    By tbechnati in forum Mobile Java General
    Replies: 0
    Last Post: 2004-05-02, 14:19

Posting Permissions

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