Quantcast
Channel: Visual COBOL
Viewing all articles
Browse latest Browse all 5819

Forum Post: RE: FirstChanceException logging

$
0
0
I think the problem is that my class is not static but the exception handler is.  I will need to restore the code to get you the exact exception.  Would you like me to do this? I'm looking into using the .net EventLog class for doing this.  I want to log the exception's StackTrace property when a certain exception occurs.  We have been getting a lot of crashes on AccessViolationException.  When I look at these in the Event Viewer (eventvwr.msc in the Run dialog), it sometimes shows a stack trace and sometimes not.  I can determine the type of exception in my FirstChanceException handler and log information to my own event log.  If I cannot see what's causing the exception by looking at the stack trace, I can show it to the support people at DevExpress.  If they tell me it's not caused by DevExpress I can show it to someone at Micro Focus.  I think using the EventLog class might be easier than logging to an ASCII file.  What do you think?  Also, I'm looking into using other events do do my logging, namely Application.ThreadException and UnhandledException, but maybe FirstChanceException will catch everything.

Viewing all articles
Browse latest Browse all 5819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>