DOCUMENT:Q235434 28-JUL-2001 [visualc] TITLE :FIX: "Attach to Process" List Is Empty PRODUCT :Microsoft C Compiler PROD/VER::6.0 OPER/SYS: KEYWORDS:kbDebug kbide kbOSWin2000 kbVC600bug kbDSupport kbGrpDSVCCompiler kbVS600sp4fix kbVS600 ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual C++, 32-bit Enterprise Edition, version 6.0, on platform(s): - the operating system: Microsoft Windows NT - the operating system: Microsoft Windows 2000 - Microsoft Visual C++, 32-bit Professional Edition, version 6.0, on platform(s): - the operating system: Microsoft Windows NT - the operating system: Microsoft Windows 2000 - Microsoft Visual C++, 32-bit Learning Edition, version 6.0, on platform(s): - the operating system: Microsoft Windows NT - the operating system: Microsoft Windows 2000 ------------------------------------------------------------------------------- SYMPTOMS ======== In the debugger, the "Attach to process" list is empty. IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the "Restoring the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help topic in Regedt32.exe. CAUSE ===== The "Attach to process" list is populated using a performance counter API. Depending on the environment and the installed performance counter DLLs, the code to populate the list may fail. This bug only affects the "Attach to process" list when running on Windows NT and Windows 2000. RESOLUTION ========== Resolution 1: You should be able to attach to the process using Task Manager: 1. Enable just-in-time debugging (JIT): a. In Visual C++, on the Tools menu, click Options. b. On the Debug tab, make sure that Just-in-time debugging is selected. 2. Run Task Manager and select the process to attach to. Right-click and select Debug. Resolution 2: 1. Run Task Manager and get the process ID for the process you want to debug. 2. At a command prompt enter the following: "msdev -p " (without the quotation marks) This will start Visual C++ and will attach to the process specified. STATUS ====== Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in the latest service pack for Visual Studio 6.0. For additional information about Visual Studio service packs, click the article numbers below to view the articles in the Microsoft Knowledge Base: Q194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why Q194295 HOWTO: Tell That a Visual Studio Service Pack Is Installed You can download the latest Visual Studio service pack from the following Microsoft Web site: Visual Studio Product Updates (http://msdn.microsoft.com/vstudio/downloads/updates.asp) MORE INFORMATION ================ If the steps for Resolution 2 do not help, and if Resolution 1 is unsatisfactory, check the version of the operating system. Even though this bug is known to occur on Windows NT 4.0 as well Windows 2000, Resolution 2 may not work on Windows 2000. You may need to go back to a released version of Windows NT. Additional query words: sp4 ====================================================================== Keywords : kbDebug kbide kbOSWin2000 kbVC600bug kbDSupport kbGrpDSVCCompiler kbVS600sp4fix kbVS600sp5fix Technology : kbVCsearch kbAudDeveloper kbVC32bitSearch Version : :6.0 Issue type : kbbug 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. Copyright Microsoft Corporation 2001.