The information in this article applies to:
SYMPTOMSThe Visual Workbench Debugger expression evaluator cannot evaluate the cast of an enumerator to a pointer to a long in C++ code. If you attempt to enter an expression of this type in the debugger's watch window, an error occurs. For example, if you try to watch the enumerator 'a' as shown in the sample code below, the debugger gives this error:
The error occurs even though the cast is legal.
RESOLUTIONIf the enumerator is assigned to a pointer to a long at compile time, the debugger can watch the pointer (see the Sample Code section below). STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATIONThe following sample code demonstrates the problem. Entering (long*)a in the Watch window causes error CXX0019. Sample Code
Additional query words:
Keywords : kbDebug kbide kbVC200 kbVC210 kbVC400 kbVC500 kbVC600 |
Last Reviewed: February 2, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |