Problems with CEF Rel. 63 in mixed VB6/VB.NET program

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Problems with CEF Rel. 63 in mixed VB6/VB.NET program

Postby cello1403 » Fri Feb 09, 2018 8:57 am

Dear community, we have the following large problem.
We develop a product, which consits of VB6 DLL / EXE / OCX in combination with VB.NET.
We use CEFSharp Release 63.

We have following constellation:
1) VB.NET Windows Forms main EXE
2) VB6 OCX Control which calls
3) VB.NET DLL, with a Form containting ChromiumBrowserControl.

The Form with the ChromiumBrowserControl is always created newly.
The first time the website is loaded, and the events of ChromiumBrowserControl are fired including IsLoadingStateChanged with e.IsLoading = False.

Beginning with the second time we call the VB.NET DLL without quitting the program, ChromiumBrowserControl does not load the page and no events are fired.
When we query the property ChromiumBrowserControl.IsBrowserInitialized, it is always false and NO event IsBrowserInitializedChanged is fired.

When we use a hard coded time between control initialization and Loading the URL of e.g. 600 ms, it sometimes works after the first successfull execution BUT sometimes not.

Therefore we would require to query property ChromiumBrowserControl.IsBrowserInitialized = True and events event IsBrowserInitializedChanged to be fired which is not the case.
cello1403
Newbie
 
Posts: 1
Joined: Fri Feb 09, 2018 8:44 am

Re: Problems with CEF Rel. 63 in mixed VB6/VB.NET program

Postby Czarek » Mon Feb 19, 2018 8:45 am

You should ask on CefSharp support channel.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Problems with CEF Rel. 63 in mixed VB6/VB.NET program

Postby amaitland » Mon Feb 19, 2018 9:22 pm

You might be better switching to a different CEF wrapper where you have complete control as you'll probably have to do some low level debugging.

Cefglue or ChromiumFx are worth checking out

If you are going to continue with CefSharp then ask your question on stack overflow as you'll likely need assistance from someone who has experience with VB6 and VB.Net
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 85 guests