Set shutdownOnProcessExit to false (code has actually been removed so it's ignored totally now, just updating for completeness)

Remove --disable-gpu from OSR examples
This commit is contained in:
amaitland 2016-06-07 15:11:50 +10:00
parent 144544d40d
commit 8f59950029
3 changed files with 3 additions and 7 deletions

View File

@ -23,11 +23,9 @@ namespace CefSharp.MinimalExample.OffScreen
Console.WriteLine();
var settings = new CefSettings();
// Disable GPU in WPF and Offscreen examples until #1634 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);
Cef.Initialize(settings, shutdownOnProcessExit: false, performDependencyCheck: true);
// Create the offscreen Chromium browser.
browser = new ChromiumWebBrowser(testUrl);

View File

@ -13,7 +13,7 @@ namespace CefSharp.MinimalExample.WinForms
public static void Main()
{
//Perform dependency check to make sure all relevant resources are in our output directory.
Cef.Initialize(new CefSettings(), shutdownOnProcessExit:true, performDependencyCheck:true);
Cef.Initialize(new CefSettings(), shutdownOnProcessExit:false, performDependencyCheck:true);
var browser = new BrowserForm();
Application.Run(browser);

View File

@ -9,10 +9,8 @@ namespace CefSharp.MinimalExample.Wpf
//Perform dependency check to make sure all relevant resources are in our output directory.
var settings = new CefSettings();
settings.EnableInternalPdfViewerOffScreen();
// Disable GPU in WPF and Offscreen examples until #1634 has been resolved
settings.CefCommandLineArgs.Add("disable-gpu", "1");
Cef.Initialize(settings, shutdownOnProcessExit: true, performDependencyCheck: true);
Cef.Initialize(settings, shutdownOnProcessExit: false, performDependencyCheck: true);
}
}
}