Process performance counter is disabled

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Mine application is used to start other executables using
System.Diagnostics.Process. Everything worked fine on windows2000. Now I will
run it on XP Professional (with SP2) and got the message "Process performance
coutner is disabled, so the requested operation cannot be performed".

The method Process.Start() worked, because the requested exe is started.
Seems that a methed as Process.CloseMainWindow() gives the error.

Can I turn the performance counter on or what must I do to solve this?

Thanks in advance.
 
Looks like performance counters are disabled on your XP machine. Take a look
at this message:
http://groups-beta.google.com/group...read/thread/5b2a3b2401494ab4/e457806b555d33a8

you should be able to turn on performance counters by editing the registry
as mentioned in the last post of that conversation.

The reason this happens is mentioned here:
http://msdn.microsoft.com/netframew...aq/SystemDiagnosticsProcessFAQ.aspx#Question2

So, this shouldn't be an issue in Whidbey.


hope that helps..
Imran.
 
Thanks, but it didn't solved mine problem.
The key mentioned in the article isn't present on the computer. I'm still
looking at
the supplied KB-articles.
 
Back
Top