1

I have some unsafe methods may throw AccessViolationException, 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?


I'm using .NET 6

Lamp
  • 302
  • 1
  • 10
  • 1
    Does this answer your question? [How to handle AccessViolationException](https://stackoverflow.com/questions/3469368/how-to-handle-accessviolationexception) – Vivek Nuna Dec 07 '22 at 04:32
  • 1
    @viveknuna not working for .NET 6 – Lamp Dec 07 '22 at 16:03

0 Answers0