Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running application
Message
From
12/09/2002 08:56:08
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00699671
Message ID:
00699718
Views:
13
Hi,

You have a few options that can achieve this.

1. Use the CreateMutex Function API
2. Create a temporary user specific local file and keep a handle to throughout the duration of the application. If the user tries to create a second instance you can detect the undeletable version of this file and stop the application opening. If the app crashes, your file can be deleted.
3. Use George Taskers Is_Run available in the downloads. If this uses getwindowtext, I am not sure.

Mace

>How can VFP determine how many times an application is running on the same machine (same user also). It is possbile to do this without the win32api funtion getwindowtext. ( When I create an email in ms outlook with the same subject as the caption of my application the function getwindowtext also counts this emailmessage ).
>
>TIA,
>
>Sander
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform