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(...);
Due to some user input i want to load a page by calling:
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?