×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    14

    Browser Contorl API - CBrCtlInterface::LoadUrlL crashes

    Hello everyone!
    I use the Browser Control API in my application which consists of two views. One view (strictly speaking the container of the view) owns CBrCtlInterface* iBrCtlInterface as a member. When ConstructL() of the container is called i initialize it:
    iBrCtlInterface = CreateBrowserControlL(...);
    iBrCtlInterface->ActivateL();
    Due to some user input i want to load a page by calling:
    iBrCtlInterface->LoadUrlL();
    Now there are two possible panics that can occur.
    1. After my application resolves a link (MBrCtlLinkResolver::ResolveLinkL(const TDesC& aUrl,..)) I modify the incoming aUrl and want to call iBrCtlInterface->LoadUrlL() again using the modified url. The application panics with "HTTP Resource Lo -1".
    2. If I call iBrCtlInterface = CreateBrowserControlL(...); again before I call iBrCtlInterface->LoadUrlL() using the modified url, even if it is already initialized, the url is loaded correctly.
    BUT if there was a view switch before and the container is to be initialized for another time, which leads to a new intialization of iBrCtlInterface, the application panics with "WSERV 38" when calling iBrCtlInterface->LoadUrlL().

    Anyone with the same or similar problems? Does someone know the reason for these panics?

    Best regards,
    Bernie

  2. #2
    Registered User
    Join Date
    Jun 2009
    Posts
    5

    Re: Browser Contorl API - CBrCtlInterface::LoadUrlL crashes

    I know this is an old post but we were having the same WSERV 38 panic on certain devices - FP1 only we believe - whereas the same code ran fine on all other devices.

    From the SDK Docs:

    WSERV 38
    The client attempted to access a sprite after the sprite's window was destroyed. Note that pointer cursors are implemented as sprites.
    In the end we determined that the WSERV 38 panic was caused by specifying the ECapabilityCursorNavigation flag in CreateBrowserControlL. Without that flag, there is no longer a WSERV 38 panic the 2nd time we call CreateBrowserControlL.

    So now we only specify that particular flag if we know at runtime that the device is not an S60 FP1 device.

  3. #3
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    68

    Re: Browser Contorl API - CBrCtlInterface::LoadUrlL crashes

    Quote Originally Posted by bfamler View Post
    Hello everyone!
    I use the Browser Control API in my application which consists of two views. One view (strictly speaking the container of the view) owns CBrCtlInterface* iBrCtlInterface as a member. When ConstructL() of the container is called i initialize it:
    iBrCtlInterface = CreateBrowserControlL(...);
    iBrCtlInterface->ActivateL();
    Due to some user input i want to load a page by calling:
    iBrCtlInterface->LoadUrlL();
    Now there are two possible panics that can occur.
    1. After my application resolves a link (MBrCtlLinkResolver::ResolveLinkL(const TDesC& aUrl,..)) I modify the incoming aUrl and want to call iBrCtlInterface->LoadUrlL() again using the modified url. The application panics with "HTTP Resource Lo -1".
    2. If I call iBrCtlInterface = CreateBrowserControlL(...); again before I call iBrCtlInterface->LoadUrlL() using the modified url, even if it is already initialized, the url is loaded correctly.
    BUT if there was a view switch before and the container is to be initialized for another time, which leads to a new intialization of iBrCtlInterface, the application panics with "WSERV 38" when calling iBrCtlInterface->LoadUrlL().

    Anyone with the same or similar problems? Does someone know the reason for these panics?

    Best regards,
    Bernie
    Have you solve that problem? i face the same problem about "HTTP Resource Lo -1".

    give me some hint, thanks!

Similar Threads

  1. Workaround for browser control api problems on N95 8gb and N82
    By shrosenzwe in forum Symbian Networking & Messaging (Closed)
    Replies: 6
    Last Post: 2009-05-29, 12:46
  2. Browser Control API
    By aditya4180 in forum Symbian
    Replies: 3
    Last Post: 2007-10-22, 05:42
  3. How to use Browser Control API..
    By manishraj in forum Symbian
    Replies: 5
    Last Post: 2007-09-13, 14:09
  4. Browser Control API
    By mayankkedia in forum Symbian
    Replies: 3
    Last Post: 2006-12-28, 05: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
  •  
×