hi,
this problom took me 2days to solve it but not found answer in other place , so post this page for the people like me .
cef version : 1750. 1738
1, you must kown multi_threaded_message_loop==true before CefInitialize, as other people said.
2,AppInitCommandLine you'd better keep.
3,important! the CefSettings of main thread should set multi_threaded_message_loop = false.
then , World silent.
//////////
调试multi_threaded_message_loop==true的时候,会经常时不时的崩溃,解决办法是:
if (wcslen(lpCmdLine) == 0) //这一句是用来确定是否是主线程,如果你的程序是带参启动的,那就根据你的实际情况来写判断条件
{
settings.multi_threaded_message_loop =false; //主线程应该为false
}
else
{
settings.multi_threaded_message_loop =true; //其他的线程为true
}
thx .