Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple Run Prevention
Message
From
06/06/2001 14:00:47
Bill Gravell
Indoor Purification System
Menifee, California, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00515926
Message ID:
00515937
Views:
13
Brien,

Thanks for the tips....I can think of a number of ways that your idea can be used. And it sounds relatively easy to do.

Thanks again,

Bill

>>Has anyone ever run across a way to determine if an application is already running and prevent it from being started a 2nd or 3rd or .... time. We have some users that forget that they have minimized an app and start it again...causes some interesting problems.
>>
>>Thanks,
>>
>>Bill
>
>Bill,
>
>Probably the best way to handle this is to add a table to your database that keeps track of which users (by SYS(0)) are on your system. ie. Users (Username C(100))
>
>Set it up so that when the application starts, the table is searched for a record matching the SYS(0) of the machine. If the record's not found, then you can just add the record. The key to preventing further access is to lock the matching (or new) record. If the record can't be locked, that would indicate that the machine already has an instance of the application running.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform