HI, sorry my poor English.
I have a simple VST plugin application http://www.steinberg.net/en/company/developers.html and i`am try to inject in plugin window CEF.
VST plugin - it is jest simple dll, on the similarity of MS COM technology.
when plugin window is opening, the Init function is called:
void WebViewLight::Init ()
{
CefMainArgs mainArgs (::GetModuleHandle (nullptr));
void* sandBox = nullptr;
this->appHandler_ = new AppHandler;
if (CefExecuteProcess (mainArgs, this->appHandler_.get (), NULL) >= 0)
return;
CefSettings settings;
CefString (&settings.user_agent) = "user-agent";
CefString (&settings.locales_dir_path) = "resources\\locales";
CefString (&settings.resources_dir_path) = "resources";
CefString (&settings.browser_subprocess_path) = "render.exe";
CefString (&settings.locale) = "ru";
settings.log_severity = LOGSEVERITY_VERBOSE;
settings.no_sandbox = true;
settings.multi_threaded_message_loop = false;
CefInitialize (mainArgs, settings, this->appHandler_.get (), NULL);
this->inited = true;
}
then created Browser Window.
When window is closed, DeInit function called:
CefShutdown ();
Well, in first window open all ok - plugin window is showing with correct CEF window.
when window closing and opening again plugin host application (VST3PluginTestHost in examlple) is crushing on CefInitialize.
in log-file:
[0831/212744:FATAL:content_main_runner.cc(727)] Check failed: InitializeSandbox(params.sandbox_info).
what am i doing wrong?
thanks!