The information in this article applies to:
SYMPTOMSIf you try to watch a static const member of a class in CodeView or the Visual Workbench debugger by placing a watch on classname::member, the debugger will display the error
-or- or it will show invalid information. Also, if you try to watch the class that contains the static const member and expand the class to look at the members, the debugger will not display the correct information for the static const member. RESOLUTIONYou can work around this by making the member variable static and not const, or by setting a watch on an instance of the class. For example, set the watch on scmemGlobal.scInt in the sample code below. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual C++ version 2.1. Sample Code
Additional query words: 4.00 4.10 1.00 1.10 1.50 2.00
Keywords : kbDebug kbide |
Last Reviewed: January 19, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |