I\'m Completely Baffled(TM) by this one: On a Win7SP1, 64-bit machine, PerfMon
appears to be completely disavowing the knowledge of installed, custom performance co
Make sure that you're not mixing x86 and x64.
I.e. if your perf counters were created using a x64 process, then make sure you're also reading them using a x64 process.
Additionally, try running as Admin.
It is likely that the problem lies in the computer, and/or in its configuration, rather than in the code you've posted. I've encountered the same situation, and have failed to encounter why the counters disappear when opening performance monitor. However, I can help you with this:
Perfmon will sometimes disable performance counters by flagging it as disabled in the registry. The link might help you find why the counters are being disabled.
Monitoring counters can also be done with the tool typeperf. In my experience, typeperf has not disabled the same counters perfmon will, providing you with an alternative in monitoring your counters.