尝试使用CefSharp.Wpf构建应用程序时,只要我从Nuget.org使用build,一切都可以正常工作,但每当我添加自定义libcef.dll构建时,Cef initialize返回false。我编译了相同的版本,使用cef-binary修改了包,但Cef.Initialize失败了,没有任何错误。您是否知道如何调试Cef.Initialize中正在发生的事情,以及如何捕获错误或无法初始化的原因?代码如下:
CefSettings settings = new CefSettings();
Boolean status = CefSharp.Cef.Initialize(settings, performDependencyCheck: false, browserProcessHandler: null);提前感谢!
发布于 2016-12-02 18:23:56
在升级到版本53之后,我遇到了这个错误。在我使用51版本之前,没有任何问题。此版本的初始化代码略有不同
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);因此,请尝试旧版本。
https://stackoverflow.com/questions/40929029
复制相似问题