Page 1 of 1

Program duplicate execution problem.

Posted: Tue Nov 12, 2024 2:10 am
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

Re: Program duplicate execution problem.

Posted: Tue Nov 12, 2024 2:56 pm
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