preformance柜台都是邪恶的。不使用它们。
如果(PerformanceCounterCategory.Exists(我爱你))//为真 { PerformanceCounterCategory.Delete(我爱你); //抛出异常的**配置注册表**键无效 }在System.Diagnostics.PerformanceCounterLib.RegisterFiles(字符串为arg0,布尔注销) 在System.Diagnostics.PerformanceCounterLib.UnregisterCategory(字符串categoryName) 在System.Diagnostics.PerformanceCounterCategory.Delete(字符串categoryName) 在WindowsFormsApplication1.Program.SetupCategory()
所有我发现是这样的: blogs.msdn/b/oanapl/archive/2009/04/24/fix-corrupted-performance-counters.aspx (使用LODCTR / R)
和它并不能帮助。因为我不知道文件中,他们谈论。 any1能有什么其他的想法?
PS 我使用Windows XP SP3可能这是问题?我的理解是假设完全支持性能计数器,除非我取消了页面文件。
为了更清楚我的problemis,即时通讯无法卸载我的计数器。
解决方案我公司过程中遇到问题的性能计数器越来越腐败的规律。如果它与实际的计数器被损坏的问题,您可以检查损坏的性能计数器方式:
- Perfc009.dat
- Perfh009.dat
- Perfi009.dat
这是我们已经找到了问题的最佳解决方案。
Preformance 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: blogs.msdn/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. any1 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 im unable to UNINSTALL my counters.
解决方案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:
If the Counters are numbers or Blank:
- Perfc009.dat
- Perfh009.dat
- Perfi009.dat
This is the best solution we have found for the issue.
更多推荐
损坏的性能计数器?
发布评论