The information in this article applies to:
SYMPTOMSIf there are two global scope variables of the same name in a project, only one symbol appears to exist when viewed in the debugger. The correct value is displayed for one of the symbols. All other symbols with the same name are displayed with that same value. RESOLUTION
The two resolutions are:
STATUSMicrosoft 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 5.0. MORE INFORMATIONFor example, in the sample code below, the debugger shows the same value for the two variables, "i" in main.cpp and "i" in Func1.cpp. To watch the two variables in the same Watch window, use the context operator. Add the following two expressions in the Watch window:
Single-step through the code and notice that even though the two variables
actually contain different values at all times, they are always displayed
with the same value--the value of "i" in Main.cpp.
Sample Code
Additional query words: kbVC420bug 10.20
Keywords : kbCompiler kbVC500fix TlsMisc |
Last Reviewed: January 31, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |