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:
parent
144544d40d
commit
8f59950029
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user