Multiple initializations during application's lifespan

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.

Multiple initializations during application's lifespan

Postby jacadcaps » Fri Dec 18, 2009 9:59 am

Hi,

in the application I'm working on there is a need to save memory whenever no embedded browsers are needed. To be able to unload cef dlls easily I have created a DLL with C exports and FreeLibrary() it after calling CefShutdown() through it. Sadly it seems this isn't currently supported in CEF. If you do something like:

Code: Select all
CefInitialize(false, std::wstring());
CefShutdown();
CefInitialize(false, std::wstring());


in the cefclient test application, it will stop as early as libicu initialization.

In my case the initialization dies in message_pump_win.cc/MessagePumpForUI::InitMessageWnd() (window creation fails). I also noticed that when I call CefShutdown(), the destructor of MessagePumpForUI is never called. Any chance this could be fixed / supported anytime soon ?

Using cef @ rev 64 with a matching chromium checkout.

Regards,
Jacek
jacadcaps
Newbie
 
Posts: 6
Joined: Mon Nov 30, 2009 3:58 am

Re: Multiple initializations during application's lifespan

Postby magreenblatt » Fri Dec 18, 2009 11:44 am

Any chance this could be fixed / supported anytime soon ?

If this is an important issue for you then submitting a patch that fixes it would be by far the fastest approach :-)
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

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