Click to See Complete Forum and Search --> : Detecting a crash
1druid1
September 13th, 2007, 09:18 AM
Hi All
I have a program that controls a com port collection system, unfortuantly this Com program is a little buggy and crashes every so often.. Is there anyway for me to create a small App in VB.net that monitors this program and notifies me by mail when it has crashed?
Any help is appreciated
Cheers
Dougie
PeejAvery
September 13th, 2007, 10:04 AM
Why are you using "buggy" software? Changing that should be your primary goal.
But, if you honestly don't want to go that route, can't you just check the process threads (EnumProcesses (http://allapi.mentalis.org/apilist/EnumProcesses.shtml)) to see if that application is still running?
1druid1
September 13th, 2007, 10:20 AM
Thats what I said about the prog too, we should just replace it, but I have been told that it would cost a fortune to replace and the cost does not justify the necessity to upgrade, the occasional crash is acceptable to the power to be..
I thought about the EnumProcesses but it looks as though the process doesnt close until the dont send error log button has been clicked on the app.
Cheers
Dougie
PeejAvery
September 13th, 2007, 12:10 PM
You could disable error reporting.
HanneSThEGreaT
September 15th, 2007, 04:28 AM
Dougie, I'd try to look for a thrid party application here to detect the crash.
Try google :
http://www.google.co.uk/search?q=detect+program+crash+software&hl=en&start=10&sa=N
But, whoever told you that the occasional crash is acceptable, should really reconcider that.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.