T
Tod Johnson
Hello,
I'm trying to implement the watchdog for my application, I mean the
process that will be watching for my application and detecting its
hanging. The question is how can I could terminate my application from
the watchdog if it detected that the program is locked?
At this moment I'm using:
....
Process t = Process.GetProcessById(Convert.ToInt32(_argv[0]));
t.WaitForExit(5000);
t.Kill();
Thread.Sleep(...);
but as I see it doesn't work
Thank you in advance,
Tod
I'm trying to implement the watchdog for my application, I mean the
process that will be watching for my application and detecting its
hanging. The question is how can I could terminate my application from
the watchdog if it detected that the program is locked?
At this moment I'm using:
....
Process t = Process.GetProcessById(Convert.ToInt32(_argv[0]));
t.WaitForExit(5000);
t.Kill();
Thread.Sleep(...);
but as I see it doesn't work
Thank you in advance,
Tod