Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is my program running already?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00859948
Message ID:
00859951
Vues:
14
>Hi All,
>
>I have a startup program in a .EXE "Myprogram.exe", that once running I would like to find out from the server/client to see if it is already running. If so, in the startup procedure of "Myprogram" I will display a message to the user telling them that a copy of the program is already running, and close it down.
>
>Is there a way to communication to the server/client PC with some sort of API parameter that I can call from the program, so I can tell the user that it's running?
>
>In thanks advance, and well appreciated.
>
Craig,

The most typical way this is supposed to be handle is by creating a mutex. I wrote an article for FoxPro Advisor a couple of years ago on this topic. The article is available on-line at the site. Just do a search on my name.

IMO, though, my late friend Ed Rauh, came up with a simpler and more elegant method by creating an event. It's available here in either the downloads or FAQs.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform