Replies: 3 comments
-
Ok I have a minimal example: MainWindow.xaml
MainWindow.xaml.cs
HBwoserWindow.xaml
HBwoserWindow.xaml.cs
When I click the button I get the following: When I close the HBwoserWindow I still have this: A CefSharp.BrowserSubprocess process has closed but 4 are left open. I do not want to call shutdown as I may want to press the button again and create a new HBwoserWindow . |
Beta Was this translation helpful? Give feedback.
-
This is expected, see https://github.com/cefsharp/CefSharp/wiki/General-Usage#processes
If you deem this behaviour as unacceptable then your options are:
You can disable the spare render process, and have |
Beta Was this translation helpful? Give feedback.
-
Cef.Shutdown works great.
I will give this a shot. Thank you :) |
Beta Was this translation helpful? Give feedback.
-
I have a WPF application that has multiple windows. When I close a window with a ChromiumWebBrowser on some of the CefSharp.BrowserSubprocess remain running. When I close the application all the processes run.
I want to stop the processes because if you keep opening and closing the windows, memory usage is increasing.
In the close event of my windows, I have the following:
If I add the following all the processes do disappear, however, I can't create a new window with a ChromiumWebBrowser as Initilize can not be called again.
Any ideas on what I can do?
Beta Was this translation helpful? Give feedback.
All reactions