BUG: PDH-Based Applications Stop Responding for 60 Seconds Before Exiting on Windows XP (312113)



The information in this article applies to:

  • Microsoft .NET Framework 1.0
  • Microsoft .NET Framework 1.1

This article was previously published under Q312113

SYMPTOMS

If the .NET Framework is installed on a system that is running Windows XP, any process that uses the Performance Data Helper (PDH) functions to retrieve performance counters may stop responding ("hang") for 60 seconds when the process exits.

CAUSE

This delay is caused by a bug in the .NET Framework performance extension DLL, Mscoree.dll.

RESOLUTION

To prevent the delay, you can turn off the .NET Framework performance counters:
  1. Locate the following key in the registry:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\.NETFramework\Performan
  2. Change the Library value from mscoree.dll to donotload_mscoree.dll.
If you later decide to turn on the .NET Framework counters, change the Library value back to mscoree.dll.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

This occurs for applications that use either managed or unmanaged code. After the 60-second delay, the process exits as expected.

Modification Type:MinorLast Reviewed:11/15/2003
Keywords:kbbug kbpending kbreadme KB312113 kbAudDeveloper