Prevent the same program from running more than once.

From: Scott Collier (noSpam_at_thisAddress.com)
Date: 11/29/03


Date: Sat, 29 Nov 2003 03:24:21 GMT

I need help...
I have designed a program that works fine until somebody opens the program
again (without closing the first program).
Is there a way to prevent a second instance of the same program running on
the one JVM.
So if somebody double clicks on the shortcut to the program, it will check
if the program is already running... is this possible ?

Any pointers or advice would be great.
Scott

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.545 / Virus Database: 339 - Release Date: 27/11/03


Relevant Pages

  • Re: Mutexes and intances of programs!
    ... > try to run it a second time it just opens the first instance. ... > mutexes to change the details so the program thinks it isn't already ... > instance of this program running! ... Well, if you could, you would be using "ReleaseMutex". ...
    (comp.lang.pascal.delphi.misc)
  • Re: Second browser window
    ... you probably have a program running which is blocking pop-up windows- ... something like Yahoo companion, Google toolbar, Earthlink pop-up blocker, ... > opens while the second brower doesn't even attempt to open ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Failure to open Word
    ... Terry Farrell - MS Word MVP ... "SArsiL" wrote in message ... When I look in the task manager there is no program running and Word never ... opens up. ...
    (microsoft.public.word.application.errors)
  • Re: i can only open up one explorer page
    ... you have a program running which is blocking pop-up windows- ... > when i click on the explorer icon on the desk top a new ... > page opens up but,if iwant to open another explorer page ...
    (microsoft.public.windows.inetexplorer.ie6.browser)