- Code: Select all
context->GetRootWindowManager()->CreateRootWindow( window_config );
and then I do some application specific checks for which I need the window handle to already exist. Then depending on the results of those application specific checks I either call
- Code: Select all
message_loop->Run();
or I just exit the app.
When I just exit the app I'm getting some assertions, specifically that RootWindowManager's root_windows_ is not empty, or that RootWindowWin's browser_destroyed_ or window_destroyed_ are false.
It appears that if I could call
- Code: Select all
BrowserWindow::OnBrowserClosed(CefRefPtr<CefBrowser> browser)
it would do the right things to clean up all three of those variables. But I don't know how to access the current BrowserWindow (the active ClientHandler::Delegate?) to call OnBrowserClosed(). (And is this even the best way to handle this situation?)
I understand it might be better to only call CreateRootWindow() if I know I'm then going to call message_loop->Run(). But as I say, it would be most convenient for my app to call CreateRootWindow() and then possibly bail out.