Is there anything I can do to catch an AccessViolationException? It is being thrown by a unmanaged DLL that I don\'t control.
AccessViolationException
Yes.
In your App.confg, plop the following code within the tag:
Now you should be able to catch corrupted state exceptions (CSE) like any other.
Note: If you already have a runtime tag then simply add to it
The above works for .Net 4.5