2016-12-02 7 views
2

CefSharp.Wpf를 사용하여 응용 프로그램을 만들려고합니다. Nuget.org에서 빌드를 사용할 때마다 모든 것이 작동하지만 Cef initialize는 사용자 정의 libcef.dll 빌드를 추가 할 때마다 false를 반환합니다. 동일한 버전을 컴파일하고 패키지를 수정하기 위해 cef-binary를 사용했지만 Cef.Initialize가 오류없이 실패합니다. Cef.Initialize에서 발생한 일을 디버깅하는 방법과 오류를 잡는 방법 및 초기화하지 않는 이유를 아는 방법이 있습니까? 다음은 코드입니다.CEF initialize false를 반환합니다

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

미리 감사드립니다!

답변

0

버전 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); 

그래서 이전 버전을 시도 약간 다릅니다.

관련 문제