Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

ID: 15898, Finding If More then Once, at Anytime During Execution

by Chris Bruner Email: Anonymous

How to find if more then one instance of a program is running at any time during execution. Very little code involved :)
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 1.0  to 5.0 1510 downloads
Copyright: No significant restrictions

Size: 179,165 bytes
Updated on Wed, 25 Apr 2001 08:25:10 GMT
Originally uploaded on Wed, 25 Apr 2001 08:20:00 GMT
SHA1 Hash: E2BB2099A2301627BC9E5E20718ECDFE00AF7214
MD5 Hash: B79EA72AF9E19CC7543358AEF1FE6BCB

    Explore the files in this upload

I recently ran into a problem, where my main program needed to run a second program and then exit. My main program also needed to be able to run more then one copy of itself at once, so my job was to insure that only one copy was running at the time the second program was going to be run, but otherwise allow more then one copy to run.

Using the Mutex trick of finding if more then one, at the start of the program, we can use two of them to find at any point in the program.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03