Hi Luke...
I think I see your problem - you're not creating multi-instance counters,
only single instance. That's not what I'm referring to. Multi-instance
counters have the same structure but can have multiple instantiations as
different processes use copies of them.
If you replace
PerformanceCounterCategory.Create("HowToCounter", "some...", CounterDatas);
with
PerformanceCounterCategory.Create("HowToCounter", "some...",
PerformanceCounterCategoryType.MultiInstance, CounterDatas);
and
Dim PerfCounter As New PerformanceCounter("HowToCounter", "ThreadCounter",
False)
with
Dim PerfCounter As New PerformanceCounter("HowToCounter", "ThreadCounter",
"MixedCaseInstance", False)
in the example you were using, you'll be getting a multi-instance counter
this time and should see the case normalization I was referring to.
Thanks
-Mark
[quoted text, click to view] "Luke Zhang [MSFT]" wrote:
> Hello mark,
>
> I build a sample performance counter in VS.NET 2005 based on this article:
>
>
http://support.microsoft.com/kb/317679 >
> But I didn't find the issue. Maybe you can also test this sample on your
> server to see if it is a code issue or an environment issue.
>
> Sincerely,
>
> Luke Zhang
>
> Microsoft Online Community Support
> ==================================================
> Get notification to my posts through email? Please refer to
>
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif > ications.
>
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
>
http://msdn.microsoft.com/subscriptions/support/default.aspx. > ==================================================
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
>
Hi Mark,
Thank you for the information, I also found the problem with the code. I
will perform further research on it and update you as soon as possible.
Sincerely,
Luke Zhang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx. ==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.