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.

Continue "Please confirm: Create and Free of GlobalCEFApp. #101"

Post Reply
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Continue "Please confirm: Create and Free of GlobalCEFApp. #101"

Post by salvadordf »

Hi,

Please, read the "Usage" section from this web page :
https://www.briskbard.com/index.php?lang=en&pageid=cef

I added a more detailed explanation about the DPR code here :
https://www.briskbard.com/forum/viewtop ... =302#p1228

Your application will use the same EXE for all processes or a different EXE for the subprocesses depending on how you set the GlobalCEFApp.BrowserSubprocessPath property.

If you need a delayed GlobalCEFApp initialization then you have to use a different EXE for the subprocesses. If you don't do that CEF will create several instances of your app trying to create all the subprocesses.

Compare the DPR code from the SimpleBrowser and the Subprocess demos.
The SimpleBrowser demo will use the same EXE with one DPR file but the Subprocess demo has two projects : one for each EXE.
Post Reply