I wrote a similar monitoring application several years ago. There is really no way to correctly verify that an application is running or not, and if it is running, that it's actually doing anything useful.
What I did was get a list of running processes, find the one I want, the keep track of CPU cycles. If it hadn't changed over a period of time, it was assume the application had crashed and was still in memory.
>We have an EXE running on the server that consumes MSMQ messages that we use to update out VFP tables. I'd like to run a seperate EXE to make sure the first one is running. Can I do that with VFP?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer