How to handle AccessViolationException

后端 未结 5 1783
暖寄归人
暖寄归人 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:50

    Add the following in the config file, and it will be caught in try catch block. Word of caution... try to avoid this situation, as this means some kind of violation is happening.

    
       
          
       
    
    

提交回复
热议问题