Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell if second exe is running over a network
Message
From
29/06/2005 13:09:03
 
 
To
29/06/2005 10:23:58
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01027393
Message ID:
01027451
Views:
13
>hi
>I have two exe's one could be running on a server, and the client on the local machine. I want the client application to know if the server application is running or not. I can do this easily if both apps are on the same machine, but how do I this if each exe's are on different machines
>tia
>Stuart

The simplest way i can think of is to have a free table on the server. When the server application starts it opens the table Exclusively. Then when the client application starts it attempts to open the same table. If it can not, then the client knows the server application is running. But if can open it, then the server application is not running.

This method save the problem if the server application crashes for any reason, the table automatically gets closed, and the Exclusive flag is reset. And the client application will know that something has happen on the server.
Greg Reichert
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform