Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


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.

↑ Back to the top


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.

↑ Back to the top


Resolution

Resolution 1

You should be able to attach to the process using Task Manager:
  1. Enable just-in-time debugging (JIT):
    1. In Visual C++, on the Tools menu, click Options.
    2. 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.

↑ Back to the top


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 <processid>
This will start Visual C++ and will attach to the process specified.

↑ Back to the top


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:

↑ Back to the top


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.

↑ Back to the top


Keywords: kbbillprodsweep, kbvs600sp5fix, kbvs600sp4fix, kbide, kbfix, kbbug, kbdebug, kb, kbtshoot, kbvc600wrapup, kbvc600applies, kbdsupport

↑ Back to the top

Article Info
Article ID : 235434
Revision : 3
Created on : 4/23/2018
Published on : 4/23/2018
Exists online : False
Views : 123