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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Program duplicate execution problem.

Post Reply
ggamak
Posts: 5
Joined: Fri Nov 08, 2024 2:28 am

Program duplicate execution problem.

Post by ggamak »

The program I created uses Mutex to prevent duplicate execution.
The CEF4Delphi I used before used v86, and I updated to v130 a few days ago.
After that, when I execute the program repeatedly, a Chrome window like the one below opens externally.
This phenomenon did not occur in previous versions.

The same phenomenon occurs when I execute programs such as MiniBrowser or SimpleBrowser in the demo repeatedly.
I did not give the NoSandbox option to the binary path option, and even if I set this option, the same thing happens.

In the MainProcess method, only the Chrome window opens and does not follow the duplicate execution prevention routine I created, and in the SubProcess method, the Chrome window opens and also follows the duplicate execution prevention routine I created.

How can I prevent this Chrome window from opening?

Image
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Program duplicate execution problem.

Post by salvadordf »

Hi,

CEF checks if another app is running with the same RootCache setting.
That window appears when you try to run two application instances with the same RootCache setting.

Read the information in these links for all the details and how to fix it :
https://www.briskbard.com/forum/viewtopic.php?t=2208
https://stackoverflow.com/questions/78652092/cef4delphi-application-cant-run-two-instances/78652679#78652679
Post Reply