473,404 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

One Trouble debugging watch window in VC++7.0 (.NET)

Hi!
When I compile my code and try to debugging,
i met one trouble in watch window.
i can't see some buffer values,
it looks filled by 0x00(null) in watch window.
but,buffer was filled by real value data.

the 0xFD(253) value always looks incorrect.
///////////////////////////////////////////////

char szbuf[10];

recv(hSocket,szbuf,sizeof(szbuf),0);

//the buffer real filled following data,
//szbuf[0] = 0xFF;
//szbuf[1] = 0xFD;
//szbuf[2] = 0x20;

but,in watch window szbuf[1] looks 0x00.
besides,"szbuf[1] & 0xFF" looks "0xFD" correctly.

char and unsigned char type boths are unusefull.

VC6.0 looks correctly.

it's VC7.0 bug?
how can i catch correct variable(s) value ?




Nov 17 '05 #1
1 1321
>When I compile my code and try to debugging,
i met one trouble in watch window.
i can't see some buffer values,
it looks filled by 0x00(null) in watch window.
but,buffer was filled by real value data.

the 0xFD(253) value always looks incorrect.


If I debug a console program with the following code:

char szbuf[10];

szbuf[0] = 0xFF;
szbuf[1] = 0xFD;
szbuf[2] = 0x20;

the value of szbuf[1] is displayed correctly in VS2003 (VC7.1). I've
no longer got VC7.0 installed, so I can't be sure whether its
something that was fixed in VC7.1 or that I've not reproduced your
exact situation.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Kyung Rae Kim | last post by:
In watch window for debugging, some buffer values looks incorrectly. it(0xFD)looks always as NULL (0x00). both char and unsigned char type also unuseful. VC6.0 works good.
2
by: Peter Steele | last post by:
Say I have a managed C++ app with some code that looks something like this: void MyMethod() { struct Point { int x, y; }; Point* p = new Point; p.x = 1; p.y = 2;
0
by: Cozfer | last post by:
Greetings, When debugging my asp.net code behind code, I can no longer expand the tree from a watch window. For example, after a breakpoint, I have the following watch: + Request.form ...
0
by: eBob.com | last post by:
I have an array Dim FileInfo(MaxFiles) As OFI of Structure Structure OFI 'OneFileInfo Dim Displayed As Boolean ... Dim Dirname As String
4
by: Austin | last post by:
I converted a project from VC6 to VC7. There is a problem in one class of this dll. ///Class1.h class CClass1: base class { private: int m_nTest; public : void Function1() }
6
by: Tau | last post by:
look my simple code below(vc8): double ends; ends=8.3; when i debug it, the variable ends cannot be displayed in the watch window. it just said "error: index '0' out of bound for...
3
by: Alistair George | last post by:
Could anyone tell me why I cannot bring up the watch window. MS help says its there but no matter what I do, I cannot find any settings to enable this debug missing menu item. Searched Google,...
0
by: Greg | last post by:
Dear all, I've trouble with debugging a huge programm. I want to look into the properties of an object when I am at a breakpoint. But in the watch window he tell's me that the object is "out of...
15
geolemon
by: geolemon | last post by:
I'm having a seriously Twilight Zone moment: In the code below, I'm building a SQL command into a string variable, declared at the top of my code. Then, I connect to the database and try to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.