Microsoft KB Archive/896266

= Some applications may encounter handle leak issues if the applications call the pdhCloseQuery function on a Windows Server 2003 SP1-based computer =

Article ID: 896266

Article Last Modified on 10/11/2007

-

APPLIES TO

 Microsoft Windows Server 2003 SP1, when used with:  Microsoft Windows Server 2003, Standard Edition (32-bit x86)

 Microsoft Windows Server 2003, Enterprise Edition

 Microsoft Windows Server 2003, Standard x64 Edition

 Microsoft Windows Server 2003, Enterprise x64 Edition</li></ul>

 Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems</li></ul> </li></ul>

-

<div class="symptoms_section">

SYMPTOMS
On a Microsoft Windows Server 2003 Service Pack 1 (SP1)-based computer, some applications may encounter memory leak issues when querying performance counters by using Performance Data Helper library (Pdh.dll). This problem occurs if the following conditions are true:
 * The application queries several performance counters
 * The application calls pdhCloseQuery without calling PdhRemoveCounter first for each counter

<div class="cause_section">

CAUSE
This problem occurs because the pdhCloseQuery function cannot close all handles in some specific conditions. Additionally, the pdhCloseQuery function does not free all the memory that is associated with the query.

<div class="resolution_section">

Service pack information
To resolve this problem, obtain the latest service pack for Windows Server 2003. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

889100 How to obtain the latest service pack for Windows Server 2003

Prerequisites
You must have Windows Server 2003 SP1 installed to apply this hotfix.

Restart requirement
You must restart your computer after you apply this hotfix.

Hotfix replacement information
This hotfix does not replace any other hotfixes.

File Information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.Windows Server 2003 with SP1, x86-based versions

Windows Server 2003 with SP1, x64-based versions

Windows Server 2003 with SP1, Itanium-based versions

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section. This problem was first corrected in Windows Server 2003 Service Pack 2.

<div class="moreinformation_section">

MORE INFORMATION
For more information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Keywords: kbfix kbqfe kbexpertiseinter kbhotfixserver kbwinserv2003presp2fix kbwinserv2003sp2fix KB896266

-

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

© Microsoft Corporation. All rights reserved.