mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
7100c3d0ec
- Add BrowserRefCounter to increment/decrement CefBrowser instance creation - Add Cef.WaitForBrowsersToClose to dispose of all browser instances and call WaitForBrowsersToClose Before calling CefShutdown it's important that CEF has finished closing/disposing of all the CefBrowser instances. If you call CefShutdown before this has finished then you can get the error "Check failed: !IsCefShutdown(). Object reference incorrectly held at CefShutdown". This is more a problem when using MultiThreadedMessageLoop where CEF close/dispose happens on a different thread. Calling ChromiumWebBrowser.Dispose will start to free the resources, CEF internally executes code on it's own thread. #3047