在VS.Net的调试器正确检查一个COM /互操作类的实例? [英] Inspecting an instance of a COM / Interop class properly in VS.Net's debugger?

查看:137
本文介绍了在VS.Net的调试器正确检查一个COM /互操作类的实例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道它如何可能看到COM /互操作适当的对象(在他们正确的类型)在VisualStudio中的调试器?我得到的是系统.__ ComObject 值(即使它正确地识别型)?

Does anyone know if and how it's possible to see COM / Interop objects properly (in their correct type) in VisualStudio's debugger? All I get is the 'evil' System.__ComObject value (even though it correctly identifies the type)?

例如:

推荐答案

所以,这不是一个答案,但检查出这两个屏幕截图。这是从同一个应用程序,只是在两个不同的中断点。在两种情况下,COM对象是从相同的COM / AX库。我不知道为什么在一个情况下,我看到系统.__ ComObject和其他适当的类型。然而,在这两种情况下,我看到合适的对象/接口的属性。怎么办?为什么会不同?

So, this isn't an answer, but check out these two screen shots. This is from the same application, just at two different break points. In both cases the COM objects are from the same COM/AX library. I've no idea why in one case I see "System.__ComObject" and in the other the proper type. However, in both cases, I'm seeing the appropriate object/interfaces properties. What gives? Why the difference?

这里的第一个说明它显示了一个系统.__ ComObject,但它也显示出我所有的对象的性质在的。点击查看全尺寸图像。

The first one here shows it showing up a "System.__ComObject", however it's also showing me all of the properites of the object. Click to view the full sized image.

<一个href="http://picasaweb.google.com/lh/photo/oPZuPFCB3SEDFFyRUz-euA?authkey=Gv1sRgCLuc0NaNqqmeSA&feat=directlink"相对=nofollow>

第二个完全隐藏系统.__ ComObject。点击查看全尺寸图像。

The second one completely hides the "System.__ComObject". Click to view the full sized image.

<一个href="http://picasaweb.google.com/lh/photo/lzbbFhYYtTvdcPEx%5FPjb-w?authkey=Gv1sRgCLuc0NaNqqmeSA&feat=directlink"相对=nofollow>

这篇关于在VS.Net的调试器正确检查一个COM /互操作类的实例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆