Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.06 KB

exceptions-interoperability.md

File metadata and controls

24 lines (18 loc) · 1.06 KB
description title ms.date helpviewer_keywords
Learn more about: Working with Interop Exceptions in Unmanaged Code
Exceptions Interoperability
01/16/2020
unmanaged code, exceptions
exceptions, unmanaged code
interop, exceptions
exceptions, interop

Working with Interop Exceptions in Unmanaged Code

Unmanaged code exception interop is supported on Windows platforms only. Portability issues arise on non-Windows platforms. Since the Unix ABI has no definition for exception handling, managed code can't know how exception mechanisms work under the covers. Therefore, exceptions can end up resulting in unpredictable behaviors and crashes.

Setjmp/Longjmp Behaviors

Interop with setjmp and longjmp C functions is not supported. You can't use longjmp to skip over managed frames.

For more information, see longjmp documentation.

See also