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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.