.NET PInvoke Exception Handling

后端 未结 4 477
無奈伤痛
無奈伤痛 2020-12-16 20:22

What exceptions can occur when using PInvoke or are all errors handled by the method return values and it is up to the developer to check and raise exceptions if ne

4条回答
  •  既然无缘
    2020-12-16 21:01

    Also:

    • DllNotFoundException
    • BadImageFormatException (DLL is wrong format or corrupted)
    • MethodAccessException (Attempt by security transparent method to call native code)

提交回复
热议问题