472,362 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Performance counters problem on non-english Windows


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,
Nov 16 '05 #1
0 1920

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

Similar topics

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...
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...
by: Marc Melancon | last post by:
Will the next release of SQL Server 2000 64bit sp provide performance counter? MarcM
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...
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...
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...
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...
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...
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...
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...
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...

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.