Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

hooking SetErrorInfo of managed COM object from unmanged code does no longer work since CLR4.0

$
0
0

Hi,

for .Net 3.5 we created a hook into SetErrorInfo to get additional information of manged COM objects like the callstack.
We implemented the hook like desscribed in this article: http://msdn.microsoft.com/en-us/magazine/cc188710.aspx

But since we need to use .Net 4.0 for our assemblies the hook no longer works. As soon as an exception occurs in the manged COM object we get an access violation to addresses outside of our unmanged programm.

Any ideas how to fix this? Does CLR4 no longer call SetErrorInfo for exceptions?


Best regards,
 
Harald Binkle


Exchange Server Toolbox |SmartPOP2Exchange | SpamAssassin
JAM Software GmbH
Am Wissenschaftspark.26 * 54296 Trier * Germany
http://www.jam-software.com



Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>