CefInitialize won't work from a mfc dll

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: CefInitialize won't work from a mfc dll

Postby sirneromani » Fri Sep 05, 2014 10:25 am

It's a win 32 console application only doing the LoadLibraryA().
sirneromani
Newbie
 
Posts: 8
Joined: Fri Aug 22, 2014 5:58 am

Re: CefInitialize won't work from a mfc dll

Postby magreenblatt » Fri Sep 05, 2014 10:42 am

Don't call CefInitialize during DLL initialization. See http://msdn.microsoft.com/en-us/library/h23hktw9.aspx.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CefInitialize won't work from a mfc dll

Postby sirneromani » Fri Sep 05, 2014 11:25 am

You are my hero. U are right. When I call the CefInit stuff in an exported function, it works. Many thanks for your help.
sirneromani
Newbie
 
Posts: 8
Joined: Fri Aug 22, 2014 5:58 am

Re: CefInitialize won't work from a mfc dll

Postby nagarajsherigar » Mon Dec 28, 2015 1:37 am

Dint the main window open twice for you?
nagarajsherigar
Techie
 
Posts: 13
Joined: Tue Dec 15, 2015 11:57 pm

Re: CefInitialize won't work from a mfc dll

Postby amaitland » Mon Dec 28, 2015 5:26 am

Your likely missing a call to `CefExecuteProcess` or your calling it too late.

Please read over https://bitbucket.org/chromiumembedded/ ... _win.cc-47
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: CefInitialize won't work from a mfc dll

Postby nagarajsherigar » Tue Dec 29, 2015 4:15 am

Hi
thanks for that.i am able to solve that multiple window issue.I gt another issue now.
i am using multi_threaded_message_loop=true (and not implemented any Message loop since it is MFC application and i dint find it is needed).When when i close the application it crashes,I had called CefShutdown() in DestroyWindow instance
nagarajsherigar
Techie
 
Posts: 13
Joined: Tue Dec 15, 2015 11:57 pm

Previous

Return to Support Forum

Who is online

Users browsing this forum: Majestic-12 [Bot] and 64 guests