Run CefDoMessageLoopWork() in its own thread

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.

Run CefDoMessageLoopWork() in its own thread

Postby blawa » Fri Apr 24, 2015 3:18 am

Hello,

does someone have expirience with running the CefDoMessageLoopWork in its own thread?

We tried it out in our application, but the offscreen rendering OnPaint is not getting called.

If we run the CefDoMessageLoopWork() in our applications Update function, everything works fine.

Is there a solution to this problem (maybe a config setting we missed)?
blawa
Techie
 
Posts: 14
Joined: Thu Feb 19, 2015 7:16 am

Re: Run CefDoMessageLoopWork() in its own thread

Postby magreenblatt » Fri Apr 24, 2015 3:20 am

What OS and CEF version?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Run CefDoMessageLoopWork() in its own thread

Postby blawa » Fri Apr 24, 2015 3:32 am

Oh yes sry, i forgot to write that:
CEF version is CEF3 version 3.2171.1979 and OS is Ubuntu 14.04
blawa
Techie
 
Posts: 14
Joined: Thu Feb 19, 2015 7:16 am

Re: Run CefDoMessageLoopWork() in its own thread

Postby amaitland » Fri Apr 24, 2015 3:54 am

Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: Run CefDoMessageLoopWork() in its own thread

Postby blawa » Fri Apr 24, 2015 4:25 am

We tried to use it, but it had no effect. We supposed that its only for on screen rendering, since in offscreen we would like to keep our message loop and just inform cef about changes.
blawa
Techie
 
Posts: 14
Joined: Thu Feb 19, 2015 7:16 am

Re: Run CefDoMessageLoopWork() in its own thread

Postby magreenblatt » Fri Apr 24, 2015 4:57 am

amaitland wrote:http://magpcss.org/ceforum/apidocs3/projects/%28default%29/_cef_settings_t.html#multi_threaded_message_loop

The multi-threaded message loop option only works on Windows.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Run CefDoMessageLoopWork() in its own thread

Postby amaitland » Fri Apr 24, 2015 5:53 am

Worth updating the API doc to clarify that it's Windows Only?
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: Run CefDoMessageLoopWork() in its own thread

Postby magreenblatt » Fri Apr 24, 2015 6:55 am

amaitland wrote:Worth updating the API doc to clarify that it's Windows Only?

Good suggestion, done in https://bitbucket.org/chromiumembedded/ ... 9954d28724.
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 94 guests