I have an application I wrote in VB.net 3.5 It does some work for me by monitoring the time my users have on an application that I did not write. I have no control over this 3rd Party application. This is how my app works.
The users click my icon and I throw a stopwatch up in the corner of the screen my app then launches the 3rd Party application using Process.Start("application.exe")
Every once in a while the application(3rd Party) will throw errors, like rundll32 can not start or memory violation errors some errors are throw by the application it's self and some are generic windows errors. I'd like to have my helper app detect the errors and log them. I already have a timer event firing to update the stop clock.
The Ideas I had were a couple, if there is someone I can look for find Forms and identify when that error pops up
or to take a screenshot of the errors that I know and then some how every second try and match what is on the screen with my error signature. This because I would have to do it ever second would need to be very light weight and fast. I have about 5-6 known errors.
Any help would be appreciated, If you have other ideas of how I could accomplish this I am all ears.