Windows 7, 64 bit. VisStudio 2008 (9.0.30729.1). .NET Framework 3.5 SP1
"Working on a mystery without any clues" here. In one process, our code creates a category (whose name is constructed using the process name + PID). Another process accesses and reports on the category's counters. Under certain circumstances, the consuming
process does not "see" the category. For instance, if the producer process is already running, the consumer starts up and can access the category and its counters with no error.
On the other hand, if the consumer starts first, any attempt to access the producer's category results in "Category not found" exception.
Here's what I know:
- perfmon sees the new category in all circumstances.
- a call to PerformanceCounterCategory.Exists for the new category always succeeds (with true).
- in desperation, I printed out all the CategoryNames from GetCategories. The new category is NOT THERE (even when PerformanceCounterCategory.Exists says it
I confess this is making me pull out my hair, and friends, there is not that much to pull. I hope someone can offer a little insight.
"I don't want to steal the show. I only want to borrow it for awhile."
View Complete Post