FIX: No Error Generated Watching Illegal Structure

Last reviewed: September 16, 1997
Article ID: 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 "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 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 WBDebug kbbuglist kbfixlist kbtool
Version : 1.00
Platform : WINDOWS
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 16, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.