BUG: NextValue method of .NET PerformanceCounter object returns zero (324548)
The information in this article applies to:
- Microsoft .NET Framework 1.0
- Microsoft .NET Framework 1.1
- Microsoft .NET Framework Class Libraries 1.0
- Microsoft .NET Framework Class Libraries 1.1
This article was previously published under Q324548 SYMPTOMS The NextValue method of the .NET PerformanceCounter object may return zero (0) for the following LogicalDisk or
PhysicalDisk performance counters:
- % Disk Time
- % Disk Read Time
- % Disk Write Time
- % Idle Time
- Avg. Disk Queue Length
- Avg. Disk Read Queue Length
- Avg. Disk Write Queue Length
CAUSEThe performance counters that are listed in the "Symptoms" section use the following counter types: - PERF_PRECISION_100NS_TIMER
-
PERF_PRECISION_TIMESTAMP
- PERF_COUNTER_100NS_QUEUELEN_TYPE
This problem occurs because the implementation of the .NET PerformanceCounter class does not correctly handle these counter types. STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.REFERENCES
For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
269481
Changes to LogicalDisk and PhysicalDisk precision counter types for Windows
262937 RegQueryValueEx() may not return disk performance counters
Modification Type: | Major | Last Reviewed: | 4/30/2004 |
---|
Keywords: | kbBCL kbbug kbDiagnostics kbKernBase kbnofix kbPerfMon KB324548 kbAudDeveloper |
---|
|