FIX: Visual C++ Debugger Unable to Watch Base Class Members4.10 | 1.00 4.10 MS-DOS | WINDOWS kbtool kbfixlist kbbuglistThe information in this article applies to:
SYMPTOMSAn attempt to place a watchpoint on a base class member variable of a derived class may fail. Microsoft CodeView for MS-DOS, CodeView for Windows, and the Visual Workbench debugger may display one of the following messages in the Watch or Locals window:
In CodeView version 4.1 for MS-DOS, expanding a local object in the
Locals window may cause the debugging session to hang. However,
expanding the local, static, global, or external object in the Watch
window does not cause the debugging session to hang.
In CodeView version 4.1 for Windows or in the Visual Workbench version 1.0 debugger, expanding a local, static, global, or external object in the Locals or Watch window does not cause the debugging session to hang. This problem does not occur in CodeView versions 4.0 and 4.01 for MS-DOS and Windows.
RESOLUTIONTo work around this problem, modify the code to add a constructor for the base class. The comments in the code example below demonstrate this procedure.
STATUSMicrosoft has confirmed this to be a problem in CodeView version 4.1 for MS-DOS and Windows and the Visual Workbench version 1.0 for Windows. This problem was corrected in Visual Workbench 32-bit Edition version 1.1 and in CodeView version 4.25 for Win32s.
MORE INFORMATIONThe following code example demonstrates this problem. The error occurs if you attempt to expand the local instantiation of Derived_from_Test or if you place the cursor on the local object "local_object" and press SHIFT+F9 to activate the QuickWatch window.
Sample Code
class Test
{
public:
};
class Derived_from_Test : public Test { };
{
}
Additional reference words: 1.00 4.10 KBCategory: kbtool kbfixlist kbbuglist KBSubcategory: WBDebug CvwIss
|
Last Reviewed: December 21, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |