Microsoft KB Archive/235434

= The "Attach to process" list is empty in Visual C++ debugger =

Article ID: 235434

Article Last Modified on 8/7/2007

-

APPLIES TO

 Microsoft Visual C++ 6.0 Enterprise Edition, when used with:  Microsoft Windows NT 4.0

 Microsoft Windows 2000 Standard Edition  Microsoft Visual C++ 6.0 Professional Edition, when used with:  Microsoft Windows NT 4.0

 Microsoft Windows 2000 Standard Edition</li></ul> </li> Microsoft Visual C++ 6.0 Standard Edition, when used with:  Microsoft Windows NT 4.0</li></ul>

 Microsoft Windows 2000 Standard Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q235434

<div class="symptoms_section">

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.

<div class="cause_section">

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.

<div class="resolution_section">

Resolution 1
You should be able to attach to the process using Task Manager:

<ol> Enable just-in-time debugging (JIT): <ol style="list-style-type: lower-alpha;"> In Visual C++, on the Tools menu, click Options.</li> On the Debug tab, make sure that Just-in-time debugging is selected.</li></ol> </li> Run Task Manager and select the process to attach to. Right-click and select Debug.</li></ol>

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

This will start Visual C++ and will attach to the process specified.

<div class="status_section">

STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are 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 following article numbers to view the articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That a Visual Studio Service Pack Is Installed

To download the latest Visual Studio service pack, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/vstudio/Aa718353.aspx

<div class="moreinformation_section">

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: kbtshoot kbbug kbdebug kbfix kbide kbvs600sp4fix kbvs600sp5fix KB235434

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.