Crashing on shutdown

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.

Re: Crashing on shutdown

Postby magreenblatt » Thu Feb 01, 2018 10:15 pm

magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Crashing on shutdown

Postby insad » Mon Mar 26, 2018 3:19 am

I'm also seeing this problem and can't find a work around.
I am on Windows 10, using a MFC dialog based application

Short repro:
In the InitInstance() I initialise Cef:
Code: Select all
...
   // Enable High-DPI support on Windows 7 or newer.
   CefEnableHighDPISupport();

   CefSettings appSettings;
   appSettings.multi_threaded_message_loop = true;
   appSettings.single_process = false;
   appSettings.no_sandbox = true;

   CefMainArgs mainArgs(m_hInstance);
   CefRefPtr<CD4WCefApp> cefApplication = (CD4WCefApp*)AfxGetApp();
   CefInitialize(mainArgs, appSettings, cefApplication, NULL);
...


And in the ExitInstance() I shutdown Cef:
Code: Select all
...
   CefShutdown();
...


Thats all it takes to let the CefShutdown() to crash..

Nothing else is used in this application; just the CefInitialize() and the CefShutdown()
No other Cef functions are used in this sample
insad
Newbie
 
Posts: 1
Joined: Mon Mar 26, 2018 2:42 am

Previous

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 53 guests