Hi ,
I have created a dll in which I am initializing the CEF and including that dll into a win 32 console application, but the application crashes at CefInitialize(main_args, settings, app.get(), sandbox_info) function i.e at
int _retval = cef_initialize(
&args,
&settings,
CefAppCppToC::Wrap(application),
windows_sandbox_info);
of libcef_dll_wrapper.cc with stack trace [0912/070426:FATAL:icu_util.cc(225)] Check failed: result.
Complete code of the function CEF_GLOBAL bool CefInitialize(const CefMainArgs& args,
const CefSettings& settings, CefRefPtr<CefApp> application,
void* windows_sandbox_info) {
const char* api_hash = cef_api_hash(0);
if (strcmp(api_hash, CEF_API_HASH_PLATFORM)) {
// The libcef API hash does not match the current header API hash.
NOTREACHED();
return false;
}
int _retval = cef_initialize(
&args,
&settings,
CefAppCppToC::Wrap(application),
windows_sandbox_info);
// Return type: bool
return _retval?true:false;
}