FIX: No Error Generated Watching Illegal Structure

ID: Q76693

1.00 WINDOWS kbtool kbfixlist kbbuglist

The information in this article applies to:

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 kbDebug kbide kbbuglist kbfixlist
Version           : 1.00
Platform          : WINDOWS
Solution Type     : kbfix

Last Reviewed: September 20, 1997