Hello.
Single-threaded message loop always better option, because it freed you from some cross-threads calls, but main good reason - is that you browser control will be on same thread as other controls. Technically - both options viable, but actually in multi-threaded mode you can easy hit into limitations in winforms controls - some of them do not handle cross-thread focus correctly (some *Strip classes). In other side - you can't completely integrate winforms and CEF message loop into one. So any ways in this mode can lead to that something can broken. But it relates from you app/controls. Most of standard winforms controls works perfectly on standard message loop, so run CEF message loop, instead of winforms - is best from CEF perspective. But you can use app.Idle as well. Both ways partially broken (from winforms perspective), because some events will be processed only by CEF loop (I.e. winforms message filter can miss some message). I'm note, that it is have sense in some special cases, but not in regular cases.
MultiThreaded mode is great when you need integrate into existing application, and did not have extension points. But, in this case - you app anyway should be ready to host content from other threads.
Also, for CEF you anyway should assist for browser controls from hosting window (by chrome design). That lead that it is almost always possible to use single threaded mode.
--
You received this message because you are subscribed to the Google Groups "CefGlue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cefglue+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.