473,387 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Performance counters problem on non-english Windows

Hi,

I need to create a dialog like the 'Add Counters' dialog box in
perfmon. I'm using the System.Diagnostics namespace class in .NET and I've
managed to do it.

The problem arises when I'm using such dialog box on a non-English Windows
OS (I'm currently testing on Spanish WinXP Professional).

I'm noticing that on non-English Windows OS there are some categories whose
counters are being displayed in English and not in the non-English language.
These particular categories are those whose category name in English is
exactly equal to that of the non-English OS language.
For e.g: if "Processor" category is translated "Procesador" in Spanish then
counters are returned in Spanish
but if "ASP.NET" category remains "ASP.NET" in Spanish, then the
counters are returned in English.
I've searched the registry
(HKLM\Software\Microsoft\WinNT\XurrentVersion\Perf Lib) and found that on the
non-English Windows these counters can be found in the non-english language.
Therefore the problem lies in the .NET functions that I'm using to retrieve
the counters for a particular performance category.

I'm using PerformanceCounterCategory.GetInstances() and
PerformanceCounterCategory.GetCounters() to obtain the instances and
counters related to a performance category. I've also tried using
PerformanceCounterCategory.ReadCategory() (with the
InstanceDataCollectionCollection) but remained the same problem.

Anyone can help?

Thanks in advance,
Chris
Nov 16 '05 #1
0 2027

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: rob_c | last post by:
Hi, I've been working with the EIF for a few days now. One of the default event sinks provided is the WMI. I've played around a bit and can send events to the WMI. My question here centers on...
2
by: Mark | last post by:
Hi... We're looking at moving an ASP app from IIS 5 to IIS 6. In general things seem to be working okay, but there are some oddities around the edges. One of those unanticipated changes has to...
2
by: Marc Melancon | last post by:
Will the next release of SQL Server 2000 64bit sp provide performance counter? MarcM
2
by: Don | last post by:
Hello! I am trying to write some code to access performance counters on a remote machine. Ideally, I would like to add a machine to a tree control (like the "Servers" view in the .NET IDE) and...
0
by: Brian Newtz | last post by:
Hi everyone, I posted this question to a yahoo group a while back but no one was able to figure out my problem... I really want to get this fixed, so I'll repost the message here: I'm trying...
7
by: James | last post by:
Hi Has anybody had any experience of ASP.Net performance counters not updating. In the performance monitor application when I try to add the groups ASP.NET and ASP.NET Applications the...
19
by: Tom Jastrzebski | last post by:
Hello, I was just testing VB.Net on Framework.Net 2.0 performance when I run into the this problem. This trivial code attached below executed hundreds, if not thousand times faster in VB 6.0...
0
by: newscorrespondent | last post by:
Some performance counters are PerformanceCounterCategoryType.MultiInstance. Many of these occur once for each running app. If for example myapp has three at the same time myapp shows up three times...
1
by: JSha | last post by:
Hello, The application I am using works on most machines except one where in it throws the following exception... Error: Process Performance Counter is Disabled, so requested operation cannot...
0
by: JSha | last post by:
Hello, The application I am using works on most machines except one where in it throws the following exception... Error: Process Performance Counter is Disabled, so requested operation cannot...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.