Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting More than one instance of an Application
Message
From
01/06/1997 08:47:28
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Detecting More than one instance of an Application
Miscellaneous
Thread ID:
00034421
Message ID:
00034421
Views:
71
My users minimize the application i have developed. When they want to go back to it, they accidently restart an other instance of the same application from the desktop icon. At one point there were 7 instances running. I want to detect if an instance of the app is alredy running, the new one should not start. At the moment I do it by creating a file in the root directory when the app starts. If somebody starts the app again on the same computer, it checks for this file. If found, it gives a warning message and quits. Is there a better way of doing this where I can use some native VFP function to detect it?

Thanks in advance.

Abdul Ahad
Abdul Ahad Khan
CSi
www.csi-pk.com
Next
Reply
Map
View

Click here to load this message in the networking platform