An application may crash when it uses legacy methods to query performance counter values in Windows Vista or in Windows Server 2008

An application may crash when it uses legacy methods to query performance counter values in Windows Vista or in Windows Server 2008

Article ID : 953290
Last Review : May 30, 2008
Revision : 1.0
On This Page

SYMPTOMS

Consider the following scenario:

• On a computer that is running Windows Vista or Windows Server 2008, an application uses legacy methods to query performance counter values. For example, the application uses the RegQueryValueEx function to perform a global query for performance counter data.
• Counter data is returned from more than 64 counter sets that are registered by performance counter version 2.0 APIs. For example, the application performs a global query on a system on which more than 64 of these counter sets are registered.

In this scenario, the application may crash.

Back to the top

CAUSE

This problem occurs because of incorrect memory management behavior in the performance counter version 2.0 interface.

Back to the top

RESOLUTION

Windows Vista hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a Hotfix download available section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)

Note The Hotfix download available form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

No prerequisites are required.

Restart requirement

You must restart the 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 Vista, x86-based versions
File name File version File size Date Time Platform
Advapi32.dll 6.0.6000.20836 770,560 17-May-2008 03:29 x86
Regsvc.dll 6.0.6000.20836 106,496 17-May-2008 03:33 x86
Windows Vista with Service Pack 1, x86-based versions
File name File version File size Date Time Platform SP requirement
Advapi32.dll 6.0.6001.22181 798,720 17-May-2008 03:21 x86 SP1
Regsvc.dll 6.0.6001.22181 107,008 17-May-2008 03:26 x86 SP1
Windows Vista, x64-based versions
File name File version File size Date Time Platform
Advapi32.dll 6.0.6000.20836 1,032,192 17-May-2008 03:36 x64
Regsvc.dll 6.0.6000.20836 203,776 17-May-2008 03:40 x64
Windows Vista with Service Pack 1, x64-based versions
File name File version File size Date Time Platform SP requirement
Advapi32.dll 6.0.6001.22181 1,062,400 17-May-2008 03:49 x64 SP1
Regsvc.dll 6.0.6001.22181 206,848 17-May-2008 03:55 x64 SP1
Windows Vista with Service Pack 1, Itanium-based versions
File name File version File size Date Time Platform
Advapi32.dll 6.0.6001.22181 1,960,448 17-May-2008 03:36 IA-64
Regsvc.dll 6.0.6001.22181 354,816 17-May-2008 03:45 IA-64

Back to the top

Windows Server 2008 hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a Hotfix download available section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)

Note The Hotfix download available form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

No prerequisites are required.

Restart requirement

You must restart the 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 2008, x86-based versions
File name File version File size Date Time Platform SP requirement
Advapi32.dll 6.0.6001.22181 798,720 17-May-2008 03:21 x86 SP1
Regsvc.dll 6.0.6001.22181 107,008 17-May-2008 03:26 x86 SP1
Windows Server 2008, Itanium-based versions
File name File version File size Date Time Platform
Advapi32.dll 6.0.6001.22181 1,960,448 17-May-2008 03:36 IA-64
Regsvc.dll 6.0.6001.22181 354,816 17-May-2008 03:45 IA-64
Windows Server 2008, x64-based versions
File name File version File size Date Time Platform SP requirement
Advapi32.dll 6.0.6001.22181 1,062,400 17-May-2008 03:49 x64 SP1
Regsvc.dll 6.0.6001.22181 206,848 17-May-2008 03:55 x64 SP1

Back to the top

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the Applies to section.

Back to the top

MORE INFORMATION

Performance counter version 2.0 APIs provide a new architecture for collecting counter data in Windows Vista and in Windows Server 2008. For more information about these performance counter APIs, visit the following Microsoft Web site:

http://msdn.microsoft.com/en-us/library/aa373102.aspx (http://msdn.microsoft.com/en-us/library/aa373102.aspx)

For more information about how an application can provide performance counter data by using the performance counter version 2.0 APIs, visit the following Microsoft Web site:

http://msdn.microsoft.com/en-us/library/aa965334.aspx (http://msdn.microsoft.com/en-us/library/aa965334.aspx)

For more information about software update terminology, 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

Back to the top


APPLIES TO
• Windows Vista Ultimate
• Windows Vista Home Premium
• Windows Vista Home Basic
• Windows Vista Enterprise
• Windows Vista Business
• Windows Vista Business 64-bit Edition
• Windows Vista Ultimate 64-bit Edition
• Windows Vista Home Premium 64-bit Edition
• Windows Vista Home Basic 64-bit Edition
• Windows Vista Enterprise 64-bit Edition
• Windows Vista Service Pack 1
• Windows Server 2008 Standard
• Windows Server 2008 Enterprise
• Windows Server 2008 Datacenter
• Windows Server 2008 Datacenter without Hyper-V
• Windows Server 2008 Enterprise without Hyper-V
• Windows Server 2008 for Itanium-Based Systems
• Windows Server 2008 Standard without Hyper-V
• Windows Web Server 2008

Back to the top

Keywords: 
kbautohotfix kbexpertiseinter kbbug kbfix kbhotfixserver kbqfe KB953290

Back to the top

 

Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
Microsoft Corporation. All rights reserved. Terms of Use | Trademarks


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply

*
To prove that you're not a bot, enter this code
Anti-Spam Image