FIX: No Error Generated Watching Illegal StructureLast reviewed: September 16, 1997Article ID: Q76693 |
1.00
WINDOWS
kbtool kbfixlist kbbuglist
The information in this article applies to:
SYMPTOMSUnder certain circumstances, an attempt to place a watch on a nonexistent structure member fails but the integrated debugger does not generate any error message. This occurs only when the name of a processor register (AX, BX, and so on) is specified as the member name.
STATUSMicrosoft has confirmed this to be a bug in the products listed at the beginning of this article. This problem was corrected in Visual C++ for Windows version 1.5.
MORE INFORMATIONAn attempt to place a watch on the expression "structname.ax" generates the following output in Visual Workbench version 1.0 for Windows:
structname.ax = <value>where <value> is replaced with an undefined number. In QuickC version 1.0 for Windows, the Watch window displays the following:
structname.ax =Because "structname.ax" is a structure member that does not exist, the Watch window should display an appropriate error message, as follows:
structname.ax = CXX0030: Error: expression cannot be evaluatedThe following code example demonstrates this problem.
Sample Code
/* Compile options needed: QuickWin Application */ /* Watch test.ax to see the problem */ void main(void){ struct ttest { int a, b; } test; test.a = 1; test.b = 2;}
|
Additional reference words: 1.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |