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: 2966
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: 2966
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: 239
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.
Post Reply