xcpy pisze:
A probowales "zresetowac" Performance Counters?
Co dokładniej masz na myśli?
Podpowiem jeszcze że mam dwa hosty (C,D) realizujące w sposób identyczny
monitoring hosta A. Host D nie ma problemów z odczytem liczników hosta
A. Host C zgłasza wyjątek ObjectDisposedException:
System.ObjectDisposedException: Cannot access a closed registry key.
Object name: 'HKEY_PERFORMANCE_DATA'.
at Microsoft.Win32.RegistryKey.EnsureNotDisposed()
at Microsoft.Win32.RegistryKey.InternalGetValue(String name, Object
defaultValue, Boolean doNotExpand, Boolean checkSecurity)
at Microsoft.Win32.RegistryKey.GetValue(String name)
at System.Diagnostics.PerformanceMonitor.GetData(String item)
at
System.Diagnostics.PerformanceCounterLib.GetPerformanceData(String item)
at System.Diagnostics.PerformanceCounterLib.GetCategorySample(String
category)
at System.Diagnostics.PerformanceCounterLib.GetCategorySample(String
machine, String category)
at System.Diagnostics.PerformanceCounter.NextSample()
at System.Diagnostics.PerformanceCounter.NextValue()
--
pozdrawiam
Piotr
XLR250&bmw_f650_dakar
|