This is how I currently handle exit:
* Use requests that app exit
* Code calls CefBrowserHost::CloseBrowser(false)
* When CefLifeSpanHandler::OnBeforeClose(..) gets called, I trigger a flag in the app
* This flag tells the app to exit its Windows message loop
* After the message loop is done, and just before the app exits, I call CefShutdown()
The stack is mostly opaque calls to functions inside libcef.dll but the final entry is :
- Code: Select all
> test_exit.exe!scoped_refptr<CefBrowser>::~scoped_refptr<CefBrowser>() Line 328 C++
Did the correct shutdown procedure change or is there something I'm missing in my shutdown sequence?