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

K

KR.KIM

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 ?
 
D

David Lowndes

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top