Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Only Run Once Instance
Message
 
À
20/11/2003 12:45:10
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Divers
Thread ID:
00851959
Message ID:
00851977
Vues:
17
if in your calling program you use a file exclusively then when the program starts check to see if the file can be used exclusively, if it can, no one is using the program otherwise warning about single user. Don't know if this will work taking into account a power failure etc but might.
Slán
~M


>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
Go raibh maith agat

~M
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform