×

Discussion Board

Results 1 to 13 of 13
  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    31

    Question HandleCommandL Rise KERN-EXEC 3

    Hi.

    I have some strange situation.

    On device, when i press menu button "Login",
    application crashes with KERN-EXEC 3.

    I try, to act this way

    Code:
    void CsTorrentAppUi::HandleCommandL(TInt aCommand)
    	{
    	return;
    However, it also give me a panic.

    My menu is,
    Code:
    RESOURCE MENU_PANE r_menu
    	{
    	items =
    		{
    		// added the new Options menu command here
    		MENU_ITEM
    				{
    				command = ECommand1;
    				txt = qtn_command1;  
    				},		
    	   MENU_ITEM
    				{
    				command = ECommand2;
    				txt = qtn_command2;  
          },	
    	   MENU_ITEM
    				{
    				command = ECommand3;
    				txt = qtn_command3;  
         },	
         MENU_ITEM
       				{
       				command = ECommand4;
       				txt = qtn_command4;  
            },	
       						
            MENU_ITEM
              				{
              				command = ECommand5;
              				txt = qtn_command5;  
                   },			
    				
                   MENU_ITEM
                     				{
                     				command = ECommand6;
                     				txt = qtn_command6;  
                          },			
                
                          MENU_ITEM
                                       				{
                                       				command = ECommand7;
                                       				txt = qtn_command7;  
                                            },			
                                  
         
         
         
    		MENU_ITEM
    				{
    				command = EAknSoftkeyExit;
    				txt = qtn_exit;
    				}
    		};
    	}

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,956

    Re: HandleCommandL Rise KERN-EXEC 3

    "Login" is your softkey or one of the menu options?

  3. #3
    Registered User
    Join Date
    Jun 2008
    Location
    India
    Posts
    1,048

    Re: HandleCommandL Rise KERN-EXEC 3

    Just debug your code first, then ask next question whenever you would be able to know where the problem can be.

  4. #4
    Registered User
    Join Date
    Aug 2009
    Posts
    31

    Re: HandleCommandL Rise KERN-EXEC 3

    Quote Originally Posted by vineet.jain View Post
    "Login" is your softkey or one of the menu options?
    Yes, it is. Binded to ECommand1, like in example.

  5. #5
    Registered User
    Join Date
    Aug 2009
    Posts
    31

    Exclamation Re: HandleCommandL Rise KERN-EXEC 3

    Quote Originally Posted by sumit.rathi View Post
    Just debug your code first, then ask next question whenever you would be able to know where the problem can be.
    The problem is that,on winscw emulator it work's perfect. Debug on device,doesn't work for me.
    Let's i try to explain more deep.

    First,
    i make up an view in AppUi constructor
    Code:
    void CsTorrentAppUi::ConstructL()
    	{
    	// Initialise app UI with standard value.
    	BaseConstructL(CAknAppUi::EAknEnableSkin);
    	waitNoteWrapper = CAknWaitNoteWrapper::NewL();
    	iTimeWaster.CreateLocal();
    	// Create view object
    	iAppView = CsTorrentAppView::NewL(ClientRect());
        AddToStackL(iAppView);
    	}
    then it goes to app view constructor
    Code:
    // -----------------------------------------------------------------------------
    // CsTorrentAppView::ConstructL()
    // Symbian 2nd phase constructor can leave.
    // -----------------------------------------------------------------------------
    //
    void CsTorrentAppView::ConstructL(const TRect& aRect)
    	{
        
    	SelectedItem=0;
    	MSelectedItem=1;  
    	WhatToDo=0;
        login=NULL;
        pass=NULL;
    	HBufC8* FilBuff(NULL);
     	RFile ReadFil;
     	
    	User::LeaveIfError(iFsSession.Connect());
    	iFsSession.ShareProtected();
     	TFileName aFile;		
     		
     	User::LeaveIfError(iFsSession.PrivatePath(aFile));
     	 	
     
           TParsePtrC parse((CEikonEnv::Static()->EikAppUi()->Application())->AppFullName());
     	 
    	// Create a window for this application view
    	CreateWindowL();
        
    	
     	
     	
    	// Set the windows size
    	SetRect(aRect);
    	
    	//User::LeaveIfError(iFsSession.Connect());
    	//iFsSession.ShareProtected();
    	TFileName filePath;
    	
    	
    	User::LeaveIfError(iFsSession.PrivatePath(filePath));
    	
    	
    	filePath.Append(KMultiBitmapFilename);
    	
        
        //TParsePtrC parse((CEikonEnv::Static()->EikAppUi()->Application())->AppFullName());
        filePath.Insert(0, parse.Drive());
        
        // with the help of icon-provider AknIconUtils can get get the file
        // from this application's private folder
      	iIconProvider = new (ELeave) CIconFileProvider(iFsSession, filePath);
        iBackgroundImage = AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesBgr);
        iSear=AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesSear);
        iCd=AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesCd);
        iDbar=AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesDbar);
        iDownload=AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesDownload);
        iLogo=AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesLogo);
        iMobileHat=AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesMobile_hat);
        iMusic=AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesMusic);
        iPk=AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesPk);
        iPp=AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesPp);
        iSave=AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesSave);
        iUser=AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesUser);
    	// Activate the window, which makes it ready to be drawn
        SetExtentToWholeScreen();
        ScrSize=CEikonEnv::Static()->ScreenDevice()->SizeInPixels();
        ActivateL();
    	DrawNow();
    	}
    then i see all that i saw in winscw emulator
    Also function TKeyResponse AppUi::HandleKeyEvent works well.
    I make up setting's there and use my option's menu.

    and when i use my options key, which is bind to ECommand1 i getting KERN-EXEC PANIC 3.
    As i saw, panic is raised not in my code. not in HandleCommandL procedure i mean. Somewhere before.

    Is it possible, to some stack error's?
    What should i do for now?


    By the way, i testing it on nokia e61i device, wich is symbian 9.1 version, and SDK,which i use (S60v3 FP1) to build is symbian 9.2 May be problem in this?

  6. #6
    Nokia Developer Champion
    Join Date
    Jul 2004
    Posts
    2,015

    Re: HandleCommandL Rise KERN-EXEC 3

    Some of most common causes of a Kern-exec 3 that happens on the device but not the emulator are:

    - using too much stack space (do you have any large TBufs etc. on the stack?)
    - accessing a pointer which is invalid (and by luck still points to something valid when executing on the emulator)

    You can add logging code to pinpoint where the problem is occuring

  7. #7
    Registered User
    Join Date
    Aug 2009
    Posts
    31

    Re: HandleCommandL Rise KERN-EXEC 3

    Quote Originally Posted by hotcheese View Post
    Some of most common causes of a Kern-exec 3 that happens on the device but not the emulator are:

    - using too much stack space (do you have any large TBufs etc. on the stack?)
    - accessing a pointer which is invalid (and by luck still points to something valid when executing on the emulator)

    You can add logging code to pinpoint where the problem is occuring
    Nothing about that(No TBufs at all).
    Which pointer could be accessed when i press CommandButton?

  8. #8
    Registered User
    Join Date
    Jun 2008
    Location
    India
    Posts
    1,048

    Re: HandleCommandL Rise KERN-EXEC 3

    Quote Originally Posted by Bchgroup View Post
    Nothing about that(No TBufs at all).
    Which pointer could be accessed when i press CommandButton?
    You can also debug your application on device using TRK from carbide and can check what is happening on real device.

    Search FN for getting started with on decide debugging using Carbide.C++

  9. #9
    Registered User
    Join Date
    Aug 2009
    Posts
    31

    Re: HandleCommandL Rise KERN-EXEC 3

    Quote Originally Posted by sumit.rathi View Post
    You can also debug your application on device using TRK from carbide and can check what is happening on real device.

    Search FN for getting started with on decide debugging using Carbide.C++
    Yeah i really need it, but App TRK on my device... Is Running. But when i press Connect via Bluetooth... It happens nothing, and Status stay "Not connected".

    May be you could help me with this issue?

  10. #10
    Registered User
    Join Date
    Jun 2008
    Location
    India
    Posts
    1,048

    Re: HandleCommandL Rise KERN-EXEC 3

    Quote Originally Posted by Bchgroup View Post
    Yeah i really need it, but App TRK on my device... Is Running. But when i press Connect via Bluetooth... It happens nothing, and Status stay "Not connected".

    May be you could help me with this issue?
    Is your device connecting to your PC with bluetooth without TRK. It is the issue of connectivity and not of TRK. Just check it and let me know.

  11. #11
    Registered User
    Join Date
    Aug 2009
    Posts
    31

    Re: HandleCommandL Rise KERN-EXEC 3

    Quote Originally Posted by sumit.rathi View Post
    Is your device connecting to your PC with bluetooth without TRK. It is the issue of connectivity and not of TRK. Just check it and let me know.
    Yes, device connected very well via PC Suite.
    I'm talking about, that in article i read about it, after perssing connect "Search devices" dialog should popup. And on my device, Connect affects nothing.

    and,btw, trk in Carbide.c++ reports that trk-on-device is not connected.
    Last edited by Bchgroup; 2009-12-03 at 13:38.

  12. #12
    Registered User
    Join Date
    Aug 2009
    Posts
    31

    Re: HandleCommandL Rise KERN-EXEC 3

    Quote Originally Posted by sumit.rathi View Post
    Is your device connecting to your PC with bluetooth without TRK. It is the issue of connectivity and not of TRK. Just check it and let me know.
    No ideas? (

  13. #13
    Registered User
    Join Date
    Jun 2008
    Location
    India
    Posts
    1,048

    Re: HandleCommandL Rise KERN-EXEC 3

    Quote Originally Posted by Bchgroup View Post
    No ideas? (
    You have to configure the bluetooth connection in your carbide as well as in mobile device and remember TRK in your mobile should be running.

Similar Threads

  1. KERN EXEC 3 ERROR
    By sanjayks84 in forum Symbian User Interface
    Replies: 5
    Last Post: 2011-02-11, 07:16
  2. Replies: 2
    Last Post: 2009-09-08, 08:11
  3. Listbox in dialog gives 'Kern Exec 3' on mobile
    By hansapariya in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-07-24, 07:01
  4. Replies: 5
    Last Post: 2008-12-12, 09:42
  5. KERN EXEC 3 on device not on Epoc
    By Kavit Patel in forum Symbian
    Replies: 4
    Last Post: 2008-11-21, 15:02

Posting Permissions

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