by FamousHe » Tue Apr 08, 2014 12:09 pm
Thanks for your answer.I'm sorry for my simple describe about this question.
Now i will detailed describe about it.
1.I build my project with vs2008/win7/MFC;
2.I created a MFC Dialog project
3.replace default codes in CCEFFrameApp::InitInstance() like this
.................
//default codes
.................
CefMainArgs main_args(theApp.m_hInstance);
CefRefPtr<ClientApp> app(new ClientApp); // ClientApp is a class public CefApp
CefSettings settings;
settings.multi_threaded_message_loop = true;
settings.single_process = true;
CefInitialize(main_args,settings,app.get());
CCEFFrameDlg dlg;
dlg.DoModal();
CefShutdown()
.......................
// default codes
.......................
4.create browser in dlg::OnInitDialog();
it load html well
but when i close the dialog,it shutdown in libcef.dll(CrBrowserMain thread)
if i just set one of multi_threaded_message_loop and single_process as true ,its nothing wrong.
are the both can not be true together?