Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8038175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:08:50+00:00 2026-06-05T03:08:50+00:00

Performance counters are EVIL. Don’t use them. if(PerformanceCounterCategory.Exists("ILoveYou") ) // is true { PerformanceCounterCategory.Delete("ILoveYou");

  • 0

Performance counters are EVIL. Don’t use them.

if(PerformanceCounterCategory.Exists("ILoveYou")  ) // is true
{
    PerformanceCounterCategory.Delete("ILoveYou"); 
    //throws exception The **configuration registry** key is invalid
}

at System.Diagnostics.PerformanceCounterLib.RegisterFiles(String arg0, Boolean unregister)
at System.Diagnostics.PerformanceCounterLib.UnregisterCategory(String categoryName)
at System.Diagnostics.PerformanceCounterCategory.Delete(String categoryName)
at WindowsFormsApplication1.Program.SetupCategory()

All I found is this:
http://blogs.msdn.com/b/oanapl/archive/2009/04/24/fix-corrupted-performance-counters.aspx
(Using LODCTR /R)

and it doesn’t help. As I have no idea what file are they talking about. Anyone got any other ideas?

PS
I use Windows XP SP3 may this be the problem? I understand it is suppose to support performance counters fully unless I cancel the page file.

to make this clear my problemis that I’m unable to UNINSTALL my counters.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T03:08:52+00:00Added an answer on June 5, 2026 at 3:08 am

    My company runs into problems with the performance counters getting corrupt regularly. If it is a problem with the actual counters being corrupt, you can check for corrupted Performance Counters by:

    1. Going to start | run | perfmon
    2. Click OK
    3. Click on the add button on the toolbar in the right panel (“+” sign button)
    4. Ensure that the proformance object drop down menu contains items and not just numbers

    If the Counters are numbers or Blank:

  2. Locate and Rename these 3 files in %windir%\system32:
    • Perfc009.dat
    • Perfh009.dat
    • Perfi009.dat
  3. Insert the Windows XP Install CD
  4. Browse to their CD drive and into the I386 Folder (i.e. D:\I386)
  5. Locate those same files here
  6. Copy and Paste them from the CD back into System32
  7. Reboot the computer.
  8. This is the best solution we have found for the issue.

  • 0
  • Reply
  • Share
    Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp
    • Report

Sidebar

Related Questions

I'm trying to use c#'s performance counters to track the throughput of an application
When I create and use performance counters like this: private readonly PerformanceCounter _cpuPerformanceCounter; public
How can I define and use two AverageTimer32 performance counters in one application (.exe)?
I am creating and setting up the performance counters correctly but when I delete
In a app i have written we delete and recreate the performance counters as
I want to use wcf performance counters per operation , like here: http://msdn.microsoft.com/en-us/library/ms731052(v=vs.90).aspx how
I have a service process, and I want to use performance counters to publish
I want to use the Hardware Performance Counters that come with the Intel and
I am trying to use the Windows performance counters to get the virtual bytes
Windows has a Performance Counters infrastructure. The OS provides some common counters, and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.