Problems with exiting cleanly

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.

Problems with exiting cleanly

Postby callum » Mon Aug 31, 2015 7:26 pm

CEF 2357/Windows 32bit

I am setting the location of the browser cache by changing the CefSettings::cache_path. The folder is created as expected but never has anything in it. I suspect it's caused by my app still not shutting down properly.

I thought I had fixed this but evidently not - this is what I do:

When the user requests that you exit the app, I call CloseBrowser(false). Later, when my overridden OnBeforeClose(..) function is called, I set a flag. In my update loop, after calling CefDoMessageLoopWork(), if the flag is set I call CefShutdown() and then trigger a callback back into my app that tells it to exit normally.

Is that the correct sequence of calls for shut down?
callum
Expert
 
Posts: 323
Joined: Mon Feb 23, 2015 6:19 pm

Re: Problems with exiting cleanly

Postby callum » Thu Sep 03, 2015 11:32 am

magreenblatt - any insight here? crashing on close down is as expected, causing problems.

is this the correct sequence of steps one should follow?
callum
Expert
 
Posts: 323
Joined: Mon Feb 23, 2015 6:19 pm

Re: Problems with exiting cleanly

Postby Czarek » Mon Nov 16, 2015 9:16 am

Are you releasing all browser references as well? (and any other CefRefPtr)
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 42 guests