阅读背景:

如何在非托管C ++中捕获托管异常(来自委托)?

来源:互联网 

I have unmanaged C++ calling a managed delegate via the function pointer provided by Marshal::GetFunctionPointerForDelegate. This delegate has the potential to throw an exception. I need to be able to properly handle this exception in my unmanaged C++ to ensure things like pointer cleanup, and potentially rethrow the exception up into more managed code. The call stack is similar to this:I have unmanaged C++ calling a managed delegate




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: