Page 1 of 1

Prevent a second instance of Chromium from opening.

Posted: Mon Mar 17, 2025 4:12 pm
by ericktux
Hello friends, I have a question: When I open a second instance of my application, the Chromium browser opens. How can I prevent this and open a second or third instance of my program? Thank you for your time and responses.

Re: Prevent a second instance of Chromium from opening.

Posted: Mon Mar 17, 2025 4:26 pm
by salvadordf
Hi,

Read this thread :
https://www.briskbard.com/forum/viewtopic.php?t=2525

Re: Prevent a second instance of Chromium from opening.

Posted: Mon Mar 17, 2025 5:05 pm
by ericktux
Thanks a lot, Salvador, I'll check it out.
This code is helping me for now, although it works in private mode:

Code: Select all

GlobalCEFApp.Cache := ExtractFilePath(ParamStr(0)) + 'cache' + IntToStr(GetTickCount);