Thanx for your support, I tested the fix you made, and things seems to go a little further ... but
the shutdown is being stopped by this statement in libcef_dll.cc
- Code: Select all
DCHECK_EQ(CefCookieManagerCppToC::DebugObjCt, 0);
I don't use the global cookie manager of CEF, instead of this I use
- Code: Select all
myCookieManager = CefCookieManager::CreateManager("");
where :
- Code: Select all
class MyClient : public CefClient, public CefRequestHandler {
//...
CefRefPtr<CefCookieManager> myCookieManager;
//...
//...
CefRefPtr<CefCookieManager> BrowserHandler::GetCookieManager(CefRefPtr<CefBrowser> browser,
const CefString& main_url) {
if (!myCookieManager.get()) {
mCookieManager = CefCookieManager::CreateManager("");
}
return mCookieManager;
}
//...
After having spent some time to debug, it seems to me that the refcount of MyClient is never
set to 0, preventing the CookieManage to be freed.
I looked in my code and I don't cache any pointers to MyClient instance, so it's a reference that
only held in CEF, but I do not find where ...
Any ideas on this ?
regards