FIX: CVW 4.0 Does Not Always Stop on Breakpoints in DLL

Last reviewed: September 16, 1997
Article ID: Q87923
4.00 4.01 WINDOWS kbtool kbbuglist kbfixlist

The information in this article applies to:

  • Microsoft CodeView for Windows, versions 4.0 and 4.01

SYMPTOMS

Microsoft CodeView for Windows versions 4.0 and 4.01 may not stop on a breakpoint in a DLL. When setting the breakpoint, the breakpoint list (BL) shows that this breakpoint is virtual. Even after the DLL is loaded, this breakpoint is still listed as virtual.

CAUSE

This problem occurs when you have more than one copy of the same DLL on your disk. CodeView differentiates between these DLLs even if they are exactly the same.

CodeView is allowing the user to load the symbolic information for one copy, but Windows itself is loading the other copy. Because the symbolic information is used to set breakpoints, breakpoints that are set on symbolic information of a DLL that is not ever loaded by Windows will always be virtual.

RESOLUTION

The best resolution for this problem is to remove all but one copy of the DLL from the disk.

This problem was corrected in CodeView 4.1. When loading multiple copies of symbolic information for the same DLL or .EXE, CodeView 4.1 generates the following warning:

   CV2213 Warning: preloaded symbols may not match 'MyDLL.DLL'

STATUS

Microsoft has confirmed this to be a problem in Microsoft CodeView versions 4.0 and 4.01. This problem was corrected in Microsoft CodeView version 4.1.

MORE INFORMATION

CodeView will only stop on a breakpoint that is associated with an address. Virtual breakpoints are breakpoints that are set on a section of code that has not been loaded into memory yet. When the code is loaded into memory, the breakpoint becomes a physical breakpoint, and is associated with a memory address.

Virtual breakpoints are displayed with a "V" before the "D" or "E" for disabled or enabled, respectively.


Additional reference words: 4.00
KBCategory: kbtool kbbuglist kbfixlist
KBSubcategory: CvwIss
Keywords : kb16bitonly
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 16, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.