Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is my program running already?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00859948
Message ID:
00859951
Views:
15
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform