Post by Justin Lopez on Jan 23, 2017 2:00:20 GMT 10
I'm trying to get CefSharp and TWBP to work together but right now there is no luck.
Everytime I go to press the new tab button I get this error:
An unhandled exception of type 'System.Exception' occurred in CefSharp.Core.dll
Additional information: Cef can only be initialized once. Use Cef.IsInitialized to guard against this exception.
I'm not sure how to initialize CefSharp in the other form that has the tab system so don't get that error, if anyone could help please do so
|
|
Post by Nathan Lecompte on Jan 23, 2017 11:08:06 GMT 10
Ah, yes this is a common mistake. Where you initialize the core (the line which has the Cef.Initialize code), you need to wrap it in an "if" statement to check whether it has already been initialized (so that it doesn't get initialized more than once), like this: If Cef.IsInitialized = False then 'Initialize the CEF web core End If Hope this helps!
|
|
Post by Justin Lopez on Jan 23, 2017 17:51:31 GMT 10
Thanks a lot, helped. Still the same Nathan, helpful like always.
|
|