PerformanceCounter.NextValue hangs on some machines

后端 未结 1 1390
挽巷
挽巷 2021-01-13 12:46

I don\'t know why, but many computers hangs on following operation:

void Init()
{
    net1 = new List();
    net2 = new List

        
相关标签:
1条回答
  • 2021-01-13 13:04

    Removing printer references helped eliminate a hang on the initial

      new PerformanceCounter("Processor", "% Processor Time", "_Total").  
    

    Now we get a fresh error message instead of hang so can trace it. From:

    Answer about printer drivers

    We had two similar dell laptops (one newer), both with Windows 8, MVSV 2013, and IIS Express 8. One would hang, one would not.

    0 讨论(0)
提交回复
热议问题