FIX: Unable to View Contents of Local Arrays on Windows NT 3.5

ID: Q128211

1.50 1.51 WINDOWS kbtool kbfixlist kbbuglist

The information in this article applies to:

SYMPTOMS

Using the Visual Workbench Integrated Debugger from Visual C++ version 1.5 or 1.51 under Windows NT version 3.5, you cannot view the contents of local arrays in either the Locals window or the Watch window. When the arrays are expanded, you get the following error message from the debugger:

   CXX0030 : error : expression cannot be evaluated.

The problem only occurs when Visual C++ version 1.5 or 1.51 is hosted on Windows NT version 3.5. This is not a problem if the debugger is run from Windows, Windows for Workgroups, or Windows NT version 3.1.

RESOLUTION

Use any one of the following suggestions to work around this problem:

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Visual C++ version 1.52 for Windows.

MORE INFORMATION

The following sample code can be used to reproduce the problem. The sample code should be built as a QuickWin application in debug mode.

Sample Code

/* Compile options needed: /Zi
*/ 

#include <stdio.h>

void function()
{
   char array1[1][5] = {"test"};
}

void main()
{
   function();
}

Additional reference words: 1.50 KBCategory: kbtool kbfixlist kbbuglist KBSubcategory: WBDebug

Keywords          : kb16bitonly kbDebug kbide kbbuglist kbfixlist
Version           : 1.50 1.51
Platform          : WINDOWS
Solution Type     : kbfix

Last Reviewed: September 22, 1997