MFC dialog box program exception: file is alloy_ Browser_ Ma

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.

MFC dialog box program exception: file is alloy_ Browser_ Ma

Postby fanrongqi » Fri Dec 22, 2023 9:22 pm

I built an MFC dialog program using VS2019 on Win10 and embedded CEF in the dialog box. Can display web pages, CEF is a sub window. During the launch, the MFC encountered an exception with the following information:



[2222/173650.409: FATAL: alloy_browser_main. cc (275)] Check failed: global_ Request_ Context_ -> HasOneRef()

MFCCefexe has triggered a breakpoint.



Alloy_ Browser_ I can't find the file main.cc, and I can't search for it on Google either. I am not sure what caused it. Do you have any suggestions?



Is there a complete example code for the logic of the MFC dialog box?



The CEF version I am using is 101
fanrongqi
Newbie
 
Posts: 7
Joined: Tue Nov 21, 2023 8:31 am

Re: MFC dialog box program exception: file is alloy_ Browser

Postby KatrinaS » Sat Dec 23, 2023 11:15 am

I'm not sure how helpful they'll be but the forum search feature has a number of discussions about CEF and MFC :)
KatrinaS
Mentor
 
Posts: 83
Joined: Tue Jul 04, 2023 6:30 pm

Re: MFC dialog box program exception: file is alloy_ Browser

Postby ndesktop » Sun Dec 24, 2023 2:51 am

A good start would be this Codeproject article, although is doc/view, not dialog. But the CEF lifetime handling is probably similar.
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 207 guests