473,587 Members | 2,588 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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,sz buf,sizeof(szbu f),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 1331
>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
975
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
1385
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
992
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 Clicking on the "+" sign should expand and show all current properties of the Request.form object. However, after clicking, the "+" sign just disappears. ...
0
1155
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
1122
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
1891
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 pointer/array 'ends'". why would this happen? Is it a bug of VC8?
3
2388
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, asked others and one other said he could not find it either. Usually MS says that you need enterprise or whatever if a feature is missing but in this...
0
1136
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 scope". Two questions: 1.) Is there a way to look into an instance of an object even if it is not "visible" to the actual method. (Only with the...
15
5200
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 execute the SQL code. Here's the corresponding snippets: 'declare variables: Dim strProc As String
0
7843
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8206
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7967
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6621
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5713
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5392
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.