My C# application is returning 0xE0434352 to Windows Task Scheduler but it is not crashing

后端 未结 11 1163
悲哀的现实
悲哀的现实 2020-11-27 15:13

I have written a few C# apps that I have running via windows task scheduler. They are running successfully (as I can see from the log files that they are writing ) but windo

11条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-27 15:46

    Hans Passant was correct, I added a handler for AppDomain.CurrentDomain.UnhandledException as described here http://msdn.microsoft.com/en-us/library/system.appdomain.unhandledexception(v=vs.71).aspx I was able to find the exception that was occurring and corrected it.

提交回复
热议问题