Page 1 of 1

Dev Tools empty when I open them too soon

PostPosted: Tue Jul 02, 2019 11:50 pm
by dtanzer
When I open the dev tools right after creating a browser, they are just empty (white). When I add Thread.sleep(1000) before opening the dev tools, it works fine.
Is there any event or listener or handler I could register that tells me when the browser is ready? The "Thread.sleep" is not a good solution, I guess...

Re: Dev Tools empty when I open them too soon

PostPosted: Wed Jul 03, 2019 1:30 am
by Czarek
See CefLifeSpanHandler::OnAfterCreated and CefRenderProcessHandler::OnBrowserCreated. When you call CreateBrowser it executes asynchronously.