## FIX: Visual C++ Debugger May Not Break on WM_KILLFOCUS Message

Q102165

    1.00
    WINDOWS
    kbtool kbfixlist kbbuglist kbfasttip

    ----------------------------------------------------------------------
    The information in this article applies to:

     - The Microsoft Visual Workbench, included with:
        - Microsoft Visual C++ for Windows, version 1.0
    ----------------------------------------------------------------------

    SYMPTOMS
    ========

    If you set a breakpoint in the Visual C++ debugger on a line of code that
    is executed in response to a WM_KILLFOCUS, execution may not halt at that
    location when the application closes.

    STATUS
    ======

    Microsoft has confirmed this to be a problem in the Microsoft products
    listed at the beginning of this article. This problem was corrected in
    Visual C++ version 1.5.

    This problem does not occur in Visual Workbench includes with Visual C++,
    32-bit Edition, version 1.0.

    MORE INFORMATION
    ================

    Microsoft Windows sends an window a WM_KILLFOCUS message immediately before
    the window loses the input focus. The Visual Workbench debugger properly
    halts execution on the code after the WM_KILLFOCUS message except when the
    user closes the application. This behavior occurs without regard to the
    specified debugging mode, either "hard" or "soft."

    This problem does not affect CodeView version 4.1 for Windows included with
    Visual C++ for Windows.

    Additional reference words: 1.00
    KBCategory: kbtool kbfixlist kbbuglist kbfasttip
    KBSubcategory: WBDebug

Keywords : kb16bitonly kbDebug kbide
Issue type :
Technology : kbVCsearch kbAudDeveloper

Last Reviewed: May 5, 2001 © 2001 Microsoft Corporation. All rights reserved. Terms of Use.