Page 1 of 1

Multiple instances with different command lines

PostPosted: Wed Aug 17, 2022 5:12 am
by Fraxinas
Dear CEF experts,

i'm hacking on a plugin that uses multiple instances of CefApps in order to be able to provide browser objects with different command lines switches concurrently. Unfortunately, the virtual function `OnBeforeCommandLineProcessing` only gets called once upon construction of the first instance, then not again after this.
What's the correct way of setting different command lines for each instance of my CefApp ?

Cheers
Fraxinas

Re: Multiple instances with different command lines

PostPosted: Wed Aug 17, 2022 10:45 am
by magreenblatt
CEF can only be initialized a single time in a given process, with a single CefApp instance, and command-line arguments cannot be changed thereafter. What are you trying to configure in OnBeforeCommandLineProcessing?

Re: Multiple instances with different command lines

PostPosted: Thu Aug 18, 2022 12:00 am
by Fraxinas
I have multiple threads with separate CefApp independent instances which are supposed to be getting different remote-debugging-port