the solution of Multi_thread eq true crashed when debug cef3

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.

the solution of Multi_thread eq true crashed when debug cef3

Postby icemoon » Tue Jul 22, 2014 3:57 am

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 .
icemoon
Newbie
 
Posts: 2
Joined: Tue Jul 22, 2014 3:16 am

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 44 guests