Monitoring System Errors

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top