Multi instance As The First Instance's sub-process

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.

Multi instance As The First Instance's sub-process

Postby wuzebin55 » Mon Jun 22, 2015 3:56 am

I notice that no matter how many Chrome instance created, all of them are regarded as sub-process of the first instance

but cefclient.exe is a whole new separate instance.

here is the process trees

tree.png
Process Treaa
tree.png (9.49 KiB) Viewed 7728 times


does someone knows how to make cef3's process work like Chrome's

I have try to set CefSettings::browser_subprocess_path to exe's path.but it doesn't work : (
wuzebin55
Techie
 
Posts: 17
Joined: Thu Feb 05, 2015 7:05 am

Re: Multi instance As The First Instance's sub-process

Postby amaitland » Mon Jun 22, 2015 4:11 am

Are you opening multiple instances of `cefsimple`?

(You say cefclient.exe, the screenshot says otherwise).
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: Multi instance As The First Instance's sub-process

Postby wuzebin55 » Mon Jun 22, 2015 4:15 am

amaitland wrote:Are you opening multiple instances of `cefsimple`?

(You say cefclient.exe, the screenshot says otherwise).



yes, I create two cefsimple.exe

but I create two Chrome.exe also,there still one Chrome.exe prcess tree.
wuzebin55
Techie
 
Posts: 17
Joined: Thu Feb 05, 2015 7:05 am

Re: Multi instance As The First Instance's sub-process

Postby amaitland » Mon Jun 22, 2015 7:55 am

I don't believe starting multiple instances of Chrome actually spawns multiple instances of Chrome. More like subsequent launches spawns multiple windows under the original running process (unless I"m mistaken).

If you required this then you'd probably have to implement some sort of mutex and communication via some form of IPC.

You can create a `tabbed browser` using a single browser process and multiple sub processes relatively easily. You use multiple calls to `CreateBrowser`.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: Multi instance As The First Instance's sub-process

Postby wuzebin55 » Mon Jun 22, 2015 8:32 pm

amaitland wrote:I don't believe starting multiple instances of Chrome actually spawns multiple instances of Chrome. More like subsequent launches spawns multiple windows under the original running process (unless I"m mistaken).

If you required this then you'd probably have to implement some sort of mutex and communication via some form of IPC.

You can create a `tabbed browser` using a single browser process and multiple sub processes relatively easily. You use multiple calls to `CreateBrowser`.




Thanks for your information.
wuzebin55
Techie
 
Posts: 17
Joined: Thu Feb 05, 2015 7:05 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 104 guests