C#: How to log stack trace of AccessViolationException before application crash?
I have some unsafe methods may throw Acces开发者_运维问答sViolationException, it will stop at the line of code with debugger attached. but if run the application without debugger, the application just crashes, cannot log the stack trance to file.
Is there any way to find out which line causes the exception?
精彩评论