Reputation: 4573
I have CefSharp-master project with which is Built on Chromium- 31.0.1650.57. All is working fine and perfect. But while Initializing settings.BrowserSubprocessPath
is set to an executable.
What is this BrowserSubprocessPath
? what happen if I avoid this?
I am Initializing Cef as:
public static void Init()
{
var settings = new CefSettings();
settings.UserAgent = "MyBrowser";
if (!Cef.Initialize(settings))
{
if (Environment.GetCommandLineArgs().Contains("--type=renderer"))
{
Environment.Exit(0);
}
else
{
return;
}
}
}
This is working fine, Only after sometime browser window goes blank.What is the reason behind this.
Upvotes: 1
Views: 9658
Reputation: 1062
When you set SingleProcess = false you should define sub-process executable file for it:
http://xilium.bitbucket.org/cefglue/doc/html/E3568E23.htm
So you can set SingleProcess = true (which is not recommended in production) or set it to a sub-process file like cefclient.exe
Upvotes: 1