Multiple instances with different command lines

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.

Multiple instances with different command lines

Postby Fraxinas » Wed Aug 17, 2022 5:12 am

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
Fraxinas
Newbie
 
Posts: 2
Joined: Wed Aug 17, 2022 4:55 am

Re: Multiple instances with different command lines

Postby magreenblatt » Wed Aug 17, 2022 10:45 am

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?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Multiple instances with different command lines

Postby Fraxinas » Thu Aug 18, 2022 12:00 am

I have multiple threads with separate CefApp independent instances which are supposed to be getting different remote-debugging-port
Fraxinas
Newbie
 
Posts: 2
Joined: Wed Aug 17, 2022 4:55 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 40 guests