<verbatim>
Managed code used in a delegate exposed to native code cannot throw exceptions without resulting in undefined behavior, see:
</verbatim>
<a href="http://stackoverflow.com/questions/8315592/implications-of-throwing-exception-in-delegate-of-unmanaged-callback">Implications of throwing exception in delegate of unmanaged callback</a>
<verbatim>
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.
</verbatim>
<hr /><i>mistachkin added on 2012-02-19 13:20:03 UTC:</i><br />
This has been fixed by check-in [6136a92dc5].
|