CefShutdown yields thread for ever

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

CefShutdown yields thread for ever

Postby Ogox » Wed Nov 15, 2017 6:52 am

Hi,

I'm using Cef with the multithreaded_message_loop enabled, and when I quit the main application in which cef is in a child window, Cef calls CefShutdown->FinalizeShutdown->base::PlatformThread::YieldCurrentThread and waits for ever in the background while the main app window is already closed.

The main app destroys all the windows and OnBeforeClosed is called before CefShutdown. Also, CefShutdown is called from the destructor of a global static variable... may it be a problem, that it's being called so "late"?
Ogox
Newbie
 
Posts: 1
Joined: Wed Nov 15, 2017 6:39 am

Re: CefShutdown yields thread for ever

Postby magreenblatt » Wed Nov 15, 2017 11:10 am

You should call CefShutdown before your application terminates (e.g. from inside your main() function).
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 54 guests