09-04-2015 06:40 AM
09-04-2015 07:19 AM - edited 09-04-2015 07:21 AM
Write your program so that it doesn't hang? ![]()
What watchdog are you talking about? As far as I know there is no Watchdog Timer on Windows?
How are you going to detect if your program has hung? If you're using Windows, it can sometimes hang an application for up to a few seconds while it is busy serving other processes/services.
What I have done before is to write another program which communicates periodically with the main program via TCP/IP and if it doesn't get a response in a timely manner, it uses .NET to find the process and kill/re-launch it.