Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Only Run Once Instance
Message
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00851959
Message ID:
00852004
Views:
9
>Hi,
>
>I have an application (written in VFP6) that I need to keep secure and have only ONE instance of it running on any given workstation. I have a temporary solution as to where I create a file in the default directory to let the application know that it is running. When a user tries to open another instance of this application, it will see this file and tell the user that another instance is already running. When I close the application, this file gets renamed or deleted. The problem lies when the program is abruptly shut down (power off, unplugged) the files never gets renamed or deleted. SO when the PC is powered back up, the user gets the message that this program is already running. Anu ideas on how to handle this situation better? Thank you.
>
Tim,

There are several ways to do this. I wrote about one in FoxPro Advisor (http://foxpro.advisor.com/doc/05263). However, my late friend Ed Rauh, created a method using events, that I would recommend over my own solution. If you bring up the Top 50 Posters report and click his name, you'll have access to his contribution summary, where you can locate this.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform