BUG: Changing Radix May Result in Inaccurate Watch ValuesLast reviewed: July 22, 1997Article ID: Q116493 |
4.10 | 4.10 1.00 1.50
MS-DOS | WINDOWS
kbtool kbbuglist
The information in this article applies to:
SYMPTOMSChanging the radix used in either CodeView or the Visual Workbench integrated debugger from 16 (hexadecimal format) to 10 (decimal format) may cause the debugger to display inaccurate values in the watch window. This occurs when a variable has already been displayed first using the hexadecimal radix.
RESOLUTIONRemoving the variable from the watch window, then adding it back to the watch window, causes the debugger to display the correct values using the new radix.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This is not a problem in Visual C++, 32-bit Edition. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONYou can use the sample code below to illustrate this problem in CodeView for MS-DOS. Build a debug version of the program and follow these steps:
Sample Code
/* Compile options needed: /Zi /Od */ #include <stdio.h> char buf[] = {'\001','\002','\003','\004','\005','\006','\007', '\010','\011','\012','\013','\014','\015','\016', '\017','\020'}; /* NOTE: The buf declaration simply inserts values 1-16 in */ /* octal. You may use whatever characters you like for this */ /* test; we are using these to better illustrate the problem.*/ void main(void) { printf("Hello World.\n"); } |
Additional reference words: 1.00 1.50 4.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |