Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Users that know Task Manager
Message
From
23/07/2018 17:00:27
 
 
To
23/07/2018 15:02:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Application:
Desktop
Miscellaneous
Thread ID:
01661323
Message ID:
01661327
Views:
54
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.-
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform