having problems using performanceCouter

  • Thread starter Thread starter UFO
  • Start date Start date
U

UFO

hi,

i've made a program that shows the CPU idle time using the performance
counter, using Visual C# .
however, from some reason, it works on any computer other than my home PC .
i've searched on the net but couldn't find what causes it.
what i get is an exception that if is not caught, closes the program. here's
a picture of what i get while debugging:
http://img294.yfrog.com/i/picture20091211182403.png/
what i think is that maybe some service of windows (that the performance
counter needs) doesn't work well(or is just disabled) .

my computer runs on Windows Xp sp3 32bit home edition,updated as much as
possible (to the official updates) .
please help me. i'm kinda a newb at C# (but i do know Java quite well) .

btw, i still don't get any email notifications for new posts, even if i
choose to get them.
 
it seems that .net framework had something wrong in its installation. i've
tried to re-install it in many ways, but with no luck. this is why i had to
re-install windows from scratch. now it all seems to work fine.
however, i still wish to know how to monitor the network bandwidth using the
performanceCounter. a way that will work on any computer, and not just hose
with a specific network card.
 
Back
Top