[SOLVED] LoadString makes frame blank and freezes CEF 2623

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.

[SOLVED] LoadString makes frame blank and freezes CEF 2623

Postby romariorios » Fri May 06, 2016 3:24 pm

Hello.

When OnLoadError is called, I set a raw HTML containing the error code and the URL to the frame using CefFrame::LoadString(). However, whenever an error happens, CEF stays blank for some reason and it seems to freeze. I'm pretty sure OnLoadError is being called properly, since CefFrame::LoadURL("about:chrome") works just okay.

Thanks in advance.
Last edited by romariorios on Fri May 06, 2016 11:51 pm, edited 1 time in total.
romariorios
Mentor
 
Posts: 50
Joined: Thu Apr 30, 2015 6:13 am
Location: Brazil

Re: LoadString makes frame blank and freezes CEF 2623

Postby magreenblatt » Fri May 06, 2016 8:43 pm

Don't use LoadString. See the example using LoadURL and data: URIs in cefclient.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: LoadString makes frame blank and freezes CEF 2623

Postby romariorios » Fri May 06, 2016 11:50 pm

Thanks for letting me know. I used the example you showed in this post: viewtopic.php?p=29378#p29378
romariorios
Mentor
 
Posts: 50
Joined: Thu Apr 30, 2015 6:13 am
Location: Brazil


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 48 guests