Monitoring System Errors

  • Thread starter Thread starter Andrew Cooper
  • Start date Start date
A

Andrew Cooper

I've got ProgramA that runs continuously on a server. There's a bug in
the program that causes a runtime error. When this happens the program
stops responding. It's still in the list of processes that are
"running" but it isn't accepting input.

What I need to do is write a program that monitors ProgramA and if there
is a runtime error thrown by Windows, it kills the process for ProgramA
and then restarts the application.

I know how to launch the application but I can't figure out how to
monitor the Windows System for the runtime error. Can someone point me
in the right direction?

Thanks,

Andrew
 
Back
Top