编程语言为c#。
程序使用System.Diagnostics.Process.GetCurrentProcess()时总报错,说“Performance Counter is disabled”。在网上看了看关于Performance Counter的资料,有人说把注册表中HKLM\SYSTEM\CurrentControlSet\Services\PerfProc\Performance下的Disable Performance Counter键值改为0。可是我的注册表里根本没有这个键值,搜索了整个注册表,也都没发现Disable Performance Counter这个键值。我的系统是Windows XP Professional SP2。哪位帮帮忙啊,谢谢!
程序使用System.Diagnostics.Process.GetCurrentProcess()时总报错,说“Performance Counter is disabled”。在网上看了看关于Performance Counter的资料,有人说把注册表中HKLM\SYSTEM\CurrentControlSet\Services\PerfProc\Performance下的Disable Performance Counter键值改为0。可是我的注册表里根本没有这个键值,搜索了整个注册表,也都没发现Disable Performance Counter这个键值。我的系统是Windows XP Professional SP2。哪位帮帮忙啊,谢谢!
解决方案 »
- 请问MemberInfo.IsDefined 方法,是啥意思啊
- 机器码注册问题
- 如何急时将更新的数据显示在前台界面上!
- connectionString属性未初始化
- 用C#做过智能设备应用程序时怎么没有monthCalendar和dateTimePicker,这样的日期控件?
- dataset跳转到指定记录的问题??
- vs.net运行环境配置问题
- UDPClient receive方法接收失效的问题
- 请教个问题:用access语句如何取出前面几位数字?:1001_现金->营业现金?
- 很讨厌的的代码问题,请各位高手帮我想想,奇怪1
- 请问如何把c#的工程编译成个一个exe文件,到其它装有framework的机器上就可以运行?
- 请问怎么在DataGrid中获取所选择的当前行
http://msdn.microsoft.com/netframework/programming/bcl/faq/SystemDiagnosticsProcessFAQ.aspx#Question7
http://weblogs.asp.net/nunitaddin/archive/2004/11/21/267559.aspx