本文介绍了获取指针的地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 限时删除!! 我怀疑ASP.NET 应用程序中的两个用户(因此线程)正在共享相同的指针 - 他们不应该这样做!对我来说可能最简单的调试方法是比较 指针的地址,但是VB.NET丢失了ObjPtr所以这有点棘手。 有没有办法调试这样的变量/指针的地址? 谢谢,Rob。 解决方案 你在谈论什么指针?你在处理非托管代码吗? - 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.NETapplication are sharing the same pointers - which they shouldn''t be! Theeasiest way for me to possibly debug this is to compare the addresses of thepointers 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. 解决方案What pointers are you talking about? Are you dealing with unmanaged code?--M S Herfried K. WagnerM V P <URL:http://dotnet.mvps.org/>V B <URL:http://classicvb.org/petition/>Hi - doesn''t matter now thanks. I didn''t need to print out the address inthe end - that was just my "old ways" showing whereby looking at hex numbersto check pointers :-) I was able to simply "?Ptr1 is Ptr2" in the commandwindow to achieve the same result.Thanks, Rob. 这篇关于获取指针的地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 1403页,肝出来的.. 09-07 02:32