Why is OnRenderThreadCreated never called in 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.

Why is OnRenderThreadCreated never called in cefclient?

Postby tiplip » Thu Mar 26, 2015 3:28 am

Hi all,

I am new to CEF3 and want to experience javascript binding according to document, I find some sample codes like:
Code: Select all
class RenderDelegate : public ClientApp::RenderDelegate {


and I also set break point at entry point of
Code: Select all
void ClientApp::OnRenderThreadCreated
, but it's never called
Similarly,
Code: Select all
CefRefPtr<CefRenderProcessHandler> GetRenderProcessHandler()
is never called either.

I am very confused, but how to implement javascript binding except
Code: Select all
window.cefQuery
tiplip
Mentor
 
Posts: 76
Joined: Thu Mar 26, 2015 3:09 am

Re: Why is OnRenderThreadCreated never called in cefclient?

Postby magreenblatt » Thu Mar 26, 2015 11:18 am

The renderer runs in a separate process. See https://bitbucket.org/chromiumembedded/ ... -processes for details.
magreenblatt
Site Admin
 
Posts: 12384
Joined: Fri May 29, 2009 6:57 pm

Re: Why is OnRenderThreadCreated never called in cefclient?

Postby tiplip » Fri Mar 27, 2015 1:31 am

magreenblatt wrote:The renderer runs in a separate process. See https://bitbucket.org/chromiumembedded/ ... -processes for details.


thanks a lot, that's it!

I find the way with your help
tiplip
Mentor
 
Posts: 76
Joined: Thu Mar 26, 2015 3:09 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 41 guests