Closed marklam closed 5 years ago
Good catch. It appears that C# gets the "special" treatment and the error doesn't show in the (admittedly, dumb) unit test. I'll push out new Nu(g)Gets in a few. Let me know if that fixes the issue.
I couldn't create a C# unit test that showed it either :-) I've checked the 1.10.5.1 packages, and can confirm that they do fix the problem - thanks!
When using a stack walking function in a debug build, the CLR terminates the app due to heap corruption.
I think it's a side-effect of marshalling the
error_t
structure. If the definition ofwalk_t
is changed to add the [In] attribute to err_desc:then the stack-walking completes successfully.