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.

Subprocess

Post Reply
dilfich
Posts: 330
Joined: Thu Nov 30, 2017 1:17 am

Subprocess

Post by dilfich »

Probably a stupid question( But what is the point of using subprocess?

For example, this will reduce the load on the main form of the program, since if many browser instances are created and the form sometimes freezes when browsers are active.

Or in which cases is this option even necessary or desirable? :?
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Subprocess

Post by salvadordf »

There're several reasons to use a different EXE for the subprocesses.

Some applications have a complex initialization. They have code in the initialization section of their units, linked DLLs, etc. Some of them use mutexes to check if there's only one instance of the application running.

In other cases the developers are not allowed to modify the DPR file in any way.

Some other projects need to embed a browser with a plugin or in a DLL.

I'm sure there are more reasons but these are the most common I've heard.
Post Reply