简体   繁体   中英

CEF initialize returns false

trying to build an app using CefSharp.Wpf, everything works whenever I use build from Nuget.org, but Cef initialize returns false whenever I add my custom libcef.dll build. I have compiled the same version, used cef-binary to modify the package, but Cef.Initialize fails without any error. Do you know any methods how to debug what is happening in Cef.Initialize and how to catch error or reason why it is not initializing? Here is the code:

CefSettings settings = new CefSettings();
Boolean status = CefSharp.Cef.Initialize(settings, performDependencyCheck: false, browserProcessHandler: null);

Thanks in advance!

I was having this error after upgrading to version 53. Before I was using version 51 without issues. Initialization code for this version is slightly different

CefSettings settings = new CefSettings();

// Disable GPU in WPF and Offscreen until GPU issues has been resolved
settings.CefCommandLineArgs.Add("disable-gpu", "1");

//Perform dependency check to make sure all relevant resources are in our output directory.
Cef.Initialize(settings, shutdownOnProcessExit: true, performDependencyCheck: true);

So try older version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM