How to handle AccessViolationException

后端 未结 5 1806
暖寄归人
暖寄归人 2020-11-22 06:53

I am using a COM object (MODI) from within my .net application. The method I am calling throws a System.AccessViolationException, which is intercepted by Visual Studio. Th

5条回答
  •  暖寄归人
    2020-11-22 07:46

    You can try using AppDomain.UnhandledException and see if that lets you catch it.

    **EDIT*

    Here is some more information that might be useful (it's a long read).

提交回复
热议问题