|Title:||delegates marked with UnmanagedFunctionPointer (i.e. called from native code) must not throw exceptions|
|Last Modified:||2012-02-29 14:55:38|
|Version Found In:||188.8.131.52|
Managed code used in a delegate exposed to native code cannot throw exceptions without resulting in undefined behavior, see:
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: