Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Users that know Task Manager
Message
De
23/07/2018 17:00:27
 
 
À
23/07/2018 15:02:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Application:
Desktop
Divers
Thread ID:
01661323
Message ID:
01661327
Vues:
55
Yeah, amigo Bozzo... I've read that solution before but if my client is so "scamp" for seeing my application and close it He will close the vigilante too...



>>Hi friends:
>>
>>ON SHUT DOWN lets me do anything when someone restart or turn off the PC but doesn't work when other someone know how avoiding normal and harmonious flowing of my software specially when that harmony tries to oblige him to input any authorised code...
>>
>>Do you know any way to at least can write a record indicating this has happened?
>>
>>Or better, which is the secret to restart an application. That would solve both.
>>
>>Thank you.
>>
>> Héctor
>
>Hi Hector:
>
>You can use a flag file to know if your app is closed in proper or no proper way. In example, you can set a "1" in a flag file when your app starts and a "0" when it closes properly, so when starting if you find a "1" is becose did not close properly (you can elaborate on the flag value, but got the idea). The only thing you don't know, in case of abnormal termination, is the reason ,because can be originated by a user killing it with task manager or a power down or others.
>
>About the restarting, you can have a "monitor" program (or service) that checks every XX seconds if the main program is in memory, and restart it if not.
>
>Regards.-
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform