View Ticket
Not logged in
Ticket UUID: 8a426d12eb2a1fa69ebda7c09623298fa8473679
Title: delegates marked with UnmanagedFunctionPointer (i.e. called from native code) must not throw exceptions
Status: Closed Type: Code_Defect
Severity: Critical Priority: NextRelease
Subsystem: Integration_Via_PInvoke Resolution: Fixed
Last Modified: 2012-02-29 14:55:38
Version Found In:
Managed code used in a delegate exposed to native code cannot throw exceptions without resulting in undefined behavior, see:

Implications of throwing exception in delegate of unmanaged callback

The potential solution is to wrap all calls into any user-provided [managed] code in try/catch blocks and then simply log any thrown exceptions instead of letting them escape back to native code.

mistachkin added on 2012-02-19 13:20:03 UTC:
This has been fixed by check-in [6136a92dc5].