Re: PerformanceCounter handle leak

Tech-Archive recommends: Fix windows errors by optimizing your registry

anonymous_at_discussions.microsoft.com
Date: 02/23/04


Date: Sun, 22 Feb 2004 23:03:31 -0800

Can you post reproducable code showing this? I.e. code
that anyone can copy/past and run directly, that makes
it easier to understand your problem. I didn't manage
to reproduce it.

I'm not convinced your usage scenario is a compelling
reason to create and destroy counters all the time, but
then I don't know the full scenario. Can the user selecy
any random counter to display, or is it some restrictede
set of counters?

If you can describe the problem a bit more detail, we
might come up with an alternative solution. Creating
counters all the time is relatively painful, so you
really want to avoid it if possible.