Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I create a PerfoamnceCounter like:

CounterCreationDataCollection ccdc;
PerformanceCounterCategory pcc;
ccds = new CounterCreationData[]
{
new CounterCreationData("Open Objects", "Open Objects",
                                                PerformanceCounterType.NumberOfItems64)
};
ccdc = new CounterCreationDataCollection(ccds);
            pcc = PerformanceCounterCategory.Create(pcName, pcName, PerformanceCounterCategoryType


In case I update the RawValue or use IncreaseBy the value seams to be set correct (in case I debug the application). But the windows resource monitor is not showing any updates. The same Code with a RateOfCountsPerSecond64 is working.
Posted

1 solution

Try to play with names of parameters. I have had the same problems and renaming resolve this problem.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900