Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

How to turn on SingleProcess Mode

Post Reply
Lingri
Posts: 4
Joined: Tue Dec 08, 2020 7:21 am

How to turn on SingleProcess Mode

Post by Lingri »

Hello!
I using CEF version 87.1.6+g315d248+chromium-87.0.4280.66_windows32

How can I turn on a SingleProcess Mode in a final application correctly?

With this option process of my application stays in Task Manager after closing application.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How to turn on SingleProcess Mode

Post by salvadordf »

Hi,

The single process mode is not supported by CEF and it should only be used for debugging purposes.

Please read this for more information :
https://github.com/salvadordf/CEF4Delphi/issues/291
Lingri
Posts: 4
Joined: Tue Dec 08, 2020 7:21 am

Re: How to turn on SingleProcess Mode

Post by Lingri »

Is there any information on whether support for this mode is planned in the future?
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How to turn on SingleProcess Mode

Post by salvadordf »

Only Chromium developers know that.
Pipinux
Posts: 1
Joined: Wed Jan 27, 2021 1:42 pm

Re: How to turn on SingleProcess Mode

Post by Pipinux »

Hello.
I imported/adapted the delphi component to compile in the C++ Builder 6 environment.
To solve the issue of hanging app I opted to use this line of code before the free of the cefapplication object.

if (Ucefapplication::GlobalCEFApp->SingleProcess)
ExitProcess(0);
dilfich
Posts: 330
Joined: Thu Nov 30, 2017 1:17 am

Re: How to turn on SingleProcess Mode

Post by dilfich »

Quite a useful mode for simple projects where the browser requirements are minimal and you do not need a bunch of unnecessary processes, it is a pity that this direction is not developed.
ExitProcess(0); although a crutch, it really saves you from hanging.
dilfich
Posts: 330
Joined: Thu Nov 30, 2017 1:17 am

Re: How to turn on SingleProcess Mode

Post by dilfich »

Are there any other tricks for this mode? Sometimes it is really convenient for simple one-page projects. It's a pity that they chose one-sided development without a light option. :(

Such errors can be removed from the log like this.. there doesn't seem to be much use, but still.
[0217/094630.820:ERROR:dxva_video_decode_accelerator_win.cc(1427)] DXVAVDA fatal error: Could not load mf.dll: Не найден указанный модуль. (0x7E)
[0217/094630.847:ERROR:system_network_context_manager.cc(679)] Cannot use V8 Proxy resolver in single process mode.

Code: Select all

 GlobalCEFApp.AddCustomCommandLine('--winhttp-proxy-resolver');
 GlobalCEFApp.AddCustomCommandLine('--disable-accelerated-video-decode');
Perhaps something else will help turn it on or off for more stable operation?
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How to turn on SingleProcess Mode

Post by salvadordf »

As far as I know there are no plans to support single process mode.
You can also try using a different EXE for the subprocesses to add a simple browser in those applications.
Post Reply