简体   繁体   English

奇怪的VS2010调试器错误

[英]Weird VS2010 debugger error

I have a class(only one!), written in C++ where I can't use the debugger. 我有一个用C ++编写的类(只有一个!),我不能使用调试器。 For "this" I have only its address and when I expand it I have as member only __vfptr with value 0x00000000. 对于“ this”,我只有其地址,而在扩展它时,我只有__vfptr成员,其值为0x00000000。 I can see function parameters in the debugger when I call function from the class, but I can't see any member variables. 当我从类中调用函数时,可以在调试器中看到函数参数,但看不到任何成员变量。 Class name is Stream, it doesn't have virtual functions. 类名是Stream,它没有虚函数。 It has many Read/Write overloaded functions for different data types. 它具有针对不同数据类型的许多读/写重载功能。 Do you have any idea why I have this problem? 你知道为什么我有这个问题吗?

Thanks! 谢谢!

Changed class name from Stream to MemoryStream and now debugger works. 将类名称从Stream更改为MemoryStream,现在调试器可以工作了。 Thanks for help! 感谢帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM