Microsoft KB Archive/76693

{|
 * width="100%"|

FIX: No Error Generated Watching Illegal Structure

 * }

Q76693

1.00 WINDOWS kbtool kbfixlist kbbuglist -- The information in this article applies to: - The Visual Workbench Debugger included with: Microsoft Visual C++ for Windows, version 1.0 -- SYMPTOMS ======== Under 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. STATUS ====== Microsoft 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 INFORMATION ================ An attempt to place a watch on the expression &quot;structname.ax&quot; generates the following output in Visual Workbench version 1.0 for Windows: structname.ax = where is replaced with an undefined number. In QuickC version 1.0 for Windows, the Watch window displays the following: structname.ax = Because &quot;structname.ax&quot; 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 evaluated The 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 KBCategory: kbtool kbfixlist kbbuglist KBSubcategory: WBDebug

Keywords : kb16bitonly kbDebug kbide

Issue type :

Technology :