Board index » delphi » Prevent another App running.

Prevent another App running.

I have 2 applications that share a common database (on the same
computer) and I want to prevent both of them running at the same time. I
know how to prevent multiple instances of the same app running but not
other apps. Any ideas ?

email  jfl...@classicfm.net if required.

TIA - John.

 

Re:Prevent another App running.


Have each application attempt to create the same named MUTEX.

See "Using CreateMutex" at  http://www.bcbdev.com/faqs/faq74.htm

Other Threads