Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple Run Prevention
Message
De
06/06/2001 14:00:47
Bill Gravell
Indoor Purification System
Menifee, Californie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00515926
Message ID:
00515937
Vues:
14
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform