×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    15

    Question Got kern-exec 3 error when creat CBrCtlInterface object at the second time! in 5800XM

    I creat a view include a CBrCtlInterface object,when i swith to another view,the CBrCtlInterface object will be delete.when a swith to the view include CBrCtlInterface object again,the error will raised!

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: Got kern-exec 3 error when creat CBrCtlInterface object at the second time! in 58

    AFAIK there is no limitations to the number of times you can create/delete the CBrCtlInterface as long as you are doing it correctly i.e. without leaking memory etc. So I would suspect it has to do with something else that you are doing not so right in the code. Do a walk-through specially in the Activate/Deactivate view functions, and if you still cant find out, share some code to let us help you.

    Cheers,
    Mayank

  3. #3
    Nokia Developer Champion
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Got kern-exec 3 error when creat CBrCtlInterface object at the second time! in 58

    Quote Originally Posted by makegame View Post
    when a swith to the view include CBrCtlInterface object again,the error will raised!
    Which line gives panic???

  4. #4
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Got kern-exec 3 error when creat CBrCtlInterface object at the second time! in 58

    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  5. #5
    Registered User
    Join Date
    Sep 2003
    Posts
    15

    Exclamation Re: Got kern-exec 3 error when creat CBrCtlInterface object at the second time! in 58

    the same code running under 3rd device is ok,but 5800xm will raise the error!

  6. #6
    Registered User
    Join Date
    Sep 2003
    Posts
    15

    Question Re: Got kern-exec 3 error when creat CBrCtlInterface object at the second time! in 58

    Nobady could help me?

  7. #7
    Registered User
    Join Date
    Oct 2008
    Location
    Sasken Communication Technologies, Bangalore
    Posts
    22

    Re: Got kern-exec 3 error when creat CBrCtlInterface object at the second time! in 58

    Hi forum nokia developers,
    I m facing the same problem here.
    BrCtlInterface displays all web pages on S60 3rd devices properly,
    However on S60 5th Edition it displays only the pages that are of size less than that of the device screen.for ex. google.com or m.facebook.com or m.orkut.com.
    trying to display any large pages for ex.timesofindia.com raises Kern Exec-3.
    I dont know wether it is a bug??
    But the sample application on forum nokia with same BrCtlInterface runs properly on 5Th Edition devices also.
    I am stuck here with the issue and i hope to get answer from forum nokia developers asap.
    Thanx
    Here is the code i used to create the browser interface.
    Code:
    void CBrCtlSampleAppContainer::CreateBrowser(){
    	iCommandBase = TBrCtlDefs::ECommandIdBase;
    	
    	// Create the Observers
    	iBrCtlSampleAppSpecialLoadObserver = CBrCtlSampleAppSpecialLoadObserver::NewL();
    	iBrCtlSampleAppLayoutObserver = CBrCtlSampleAppLayoutObserver::NewL(this);
    	iBrCtlSampleAppSoftkeysObserver = CBrCtlSampleAppSoftkeysObserver::NewL(this);
    	iBrCtlSampleAppLoadEventObserver = CBrCtlSampleAppLoadEventObserver::NewL(this);
    	iBrCtlSampleAppLinkResolver = CBrCtlSampleAppLinkResolver::NewL();
    	iBrCtlSampleAppStateChangeObserver = CBrCtlSampleAppStateChangeObserver::NewL(this);
    	iBrCtlSampleAppDialogsProvider = CBrCtlSampleAppDialogsProvider::NewL(this);
    	
    	// Initialize memeber variables
    	iBrCtlCapabilities = TBrCtlDefs::ECapabilityDisplayScrollBar |
    				TBrCtlDefs::ECapabilityLoadHttpFw |
    				TBrCtlDefs::ECapabilityClientResolveEmbeddedURL;
    	TRect brCtlRect(TPoint(0, 0), Size());
    	iBrCtlInterface = CreateBrowserControlL( this, 
    						brCtlRect, 
    						iBrCtlCapabilities,
    						iCommandBase, 
    						iBrCtlSampleAppSoftkeysObserver, 
    						iBrCtlSampleAppLinkResolver, 
    						iBrCtlSampleAppSpecialLoadObserver,
    						iBrCtlSampleAppLayoutObserver,
    						iBrCtlSampleAppDialogsProvider);
    	
    	// These observers can be added and removed dynamically
    	iBrCtlInterface->AddLoadEventObserverL(iBrCtlSampleAppLoadEventObserver);
    	iBrCtlInterface->AddStateChangeObserverL(iBrCtlSampleAppStateChangeObserver);
    	//iBrCtlInterface->SetBrowserSettingL(TBrCtlDefs::ESettingsSmallScreen,0);
    	iBrCtlInterface->SetBrowserSettingL(TBrCtlDefs::ESettingsFontSize,TBrCtlDefs::EFontSizeLevelAllSmall);
            //This will be displaye Properly
              //LoadPage(_L("http://www.google.com"));
            //This would raise Kern exec-3
    	 LoadPage(_L("http://www.timesofindia.com"));
    }
    Last edited by rizvanmotala99; 2009-06-12 at 12:10.

  8. #8
    Nokia Developer Expert
    Join Date
    Jun 2009
    Posts
    5

    Re: Got kern-exec 3 error when creat CBrCtlInterface object at the second time! in 58

    Hi makegame,

    I'm facing exactly the same problem with CBrCtlInterface. If you create and delete it more than once in a same process, then second instantiation crashes with KERN EXEC 3. Problem can be reproduced with Tube and E52, but for example with E66 and N85 everything works just fine. Did you find any solution for this?

    -KK

  9. #9
    Registered User
    Join Date
    Jul 2008
    Posts
    16

    Re: Got kern-exec 3 error when creat CBrCtlInterface object at the second time! in 58

    I went ahead and ZIP'd up the BrCtlSampleApp code that reproduces this crash and attached it as a comment to the Wiki article that seems most appropriate, the one about the delete / reconstruct:

    http://wiki.forum.nokia.com/index.ph...te/reconstruct

    I'm thinking of working around this by making the control a Singleton...I hope the GUI system doesn't get upset if I do this.

Similar Threads

  1. Active Object Problem.. KERN EXEC 3
    By coolblues5000 in forum Symbian
    Replies: 40
    Last Post: 2008-10-30, 09:47
  2. KERN EXEC 2nd TIME EXECUTELD()!!
    By joseph.m in forum Symbian
    Replies: 3
    Last Post: 2008-09-12, 08:39
  3. Replies: 4
    Last Post: 2008-03-05, 09:30
  4. Replies: 6
    Last Post: 2007-09-28, 05:36
  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
  •