Crashed thread when adding second browser to cefclient

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.

Crashed thread when adding second browser to cefclient

Postby chortle » Mon Apr 20, 2015 12:48 pm

CEF Version: cef_binary_3.2272.2077_macosx64

Actions taken:
1. Downloaded 2272 code and ran cmake for mac64 bit
2. Tried to create a new browser within the main window content view:

// Modified the size of the default browser loaded with the code
window_info.SetAsChild(contentView, 5, 310, kWindowWidth, kWindowHeight-200);

// Create new browser view.
CefWindowInfo window_info2;
CefBrowserSettings settings2;
window_info2.SetAsChild(contentView, 5, 5, kWindowWidth, kWindowHeight - 300);
CefBrowserHost::CreateBrowser(window_info2, g_handler.get(),
"http://www.youtube.com", settings, NULL);

3. Compiled, ran it and started clicking around. Got the following error. Please advise on what I may be doing wrong. I am new to CEF and hoping that the fix is simple and something silly that I might have done.
Attachments
ThreadErrAddingSecondBrowseer.rtf
(93.25 KiB) Downloaded 325 times
chortle
Techie
 
Posts: 12
Joined: Mon Apr 20, 2015 12:36 pm

Re: Crashed thread when adding second browser to cefclient

Postby magreenblatt » Mon Apr 20, 2015 1:12 pm

It looks like you were exiting the application when the crash occurred. You likely need to modify ClientHandler so that it only exits the application after OnBeforeClose has been called for both browser windows.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 110 guests