获取指针的地址 [英] Getting the address of a pointer

查看:79
本文介绍了获取指针的地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怀疑ASP.NET

应用程序中的两个用户(因此线程)正在共享相同的指针 - 他们不应该这样做!对我来说可能最简单的调试方法是比较

指针的地址,但是VB.NET丢失了ObjPtr所以这有点棘手。


有没有办法调试这样的变量/指针的地址?


谢谢,Rob。

解决方案

你好Rob,


目前我在这个问题上找到了一位支持专家。当

任何更新时,我们会在第一时间回复。


最好的问候,

Wei-Dong XU

Microsoft产品支持服务

此帖子按原样提供。没有保证,也没有赋予任何权利。

我很乐意为您提供帮助。


Rob,

Rob Nicholson <在****** @ community.nospam> schrieb:

我怀疑ASP.NET
应用程序中的两个用户(以及线程)共享相同的指针 - 他们不应该这样做!对我来说可能最简单的调试方法是比较
指针的地址,但是VB.NET丢失了ObjPtr,所以这有点棘手。




你在谈论什么指针?你在处理非托管代码吗?


-

MS Herfried K. Wagner

MVP< URL:http:/ /dotnet.mvps.org/>

VB< URL:http://classicvb.org/petition/>


>目前我在这个问题上找到了一位支持专业人员。

任何更新时,我们会在第一时间回复。




嗨 - 现在没关系谢谢。我不需要在

结束时打印出地址 - 这只是我的旧方法。显示通过查看十六进制数来检查指针:-)我能够简单地?Ptr1是Ptr2。在命令

窗口中实现相同的结果。


谢谢,Rob。


I''ve got a suspicion that two user (and therefore threads) in an ASP.NET
application are sharing the same pointers - which they shouldn''t be! The
easiest way for me to possibly debug this is to compare the addresses of the
pointers but VB.NET has lost ObjPtr so this is a bit tricky.

Is there a way to debug the address of a variable/pointers like this?

Thanks, Rob.

解决方案

Hi Rob,

Currently I am finding one support professional for you on this issue. When
any update, we will reply here at the first time.

Best Regards,
Wei-Dong XU
Microsoft Product Support Services
This posting is provided "AS IS" with no warranties, and confers no rights.
It is my pleasure to be of assistance.


Rob,

"Rob Nicholson" <in******@community.nospam> schrieb:

I''ve got a suspicion that two user (and therefore threads) in an ASP.NET
application are sharing the same pointers - which they shouldn''t be! The
easiest way for me to possibly debug this is to compare the addresses of
the
pointers but VB.NET has lost ObjPtr so this is a bit tricky.



What pointers are you talking about? Are you dealing with unmanaged code?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


> Currently I am finding one support professional for you on this issue.
When

any update, we will reply here at the first time.



Hi - doesn''t matter now thanks. I didn''t need to print out the address in
the end - that was just my "old ways" showing whereby looking at hex numbers
to check pointers :-) I was able to simply "?Ptr1 is Ptr2" in the command
window to achieve the same result.

Thanks, Rob.


这篇关于获取指针的地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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