I have a console application written in C#. This application runs as automation to test a web service. Flow:
- Log in to network share (impersonate user)
- copy mp3 file to local disc
- convert mp3 to wav
- downsample
- trim wave
- extract some useful data from wav
- send http request
- delete local files
- write out some stuff to tsv
The application will run great for several hours (usually takes about 24 hours to complete the test). but every once and a while I will get this message: "The application has stopped working. I have been running this is VS 2012 in debug mode so, I can see what line throws any error. problem is, that I have not been able to catch the line (or method) that is throwing the error. I originally thought that the Domain controller was causing this issue due to power settings.
How can I capture exactly what error is bubbling its way up the stack?