hexagon-oss / openhardwaremonitor

Open Hardware Monitor - a tool for monitoring hardware performance. Includes support for various temperature sensors, disk I/O ratings and power consumption.
Mozilla Public License 2.0
188 stars 21 forks source link

Problem with i5-10400 CPU #24

Closed qiangqiang101 closed 2 years ago

qiangqiang101 commented 2 years ago

I have this error on repeat when calling hardware.Update() on a i5-10400 CPU 9:07 AM: Object reference not set to an instance of an object. at OpenHardwareMonitor.Hardware.CPU.GenericCPU.Update() in D:\Projects\openhardwaremonitor\OpenHardwareMonitorLib\Hardware\CPU\GenericCPU.cs:line 273 at OpenHardwareMonitor.Hardware.CPU.IntelCPU.Update() in D:\Projects\openhardwaremonitor\OpenHardwareMonitorLib\Hardware\CPU\IntelCPU.cs:line 431 at ResMon.frmMonitor.Monitor() in E:\Users\Bartholomew\Documents\GitHub\BigBro-Monitor\ResMon\frmMonitor.vb:line 122

pgrawehr commented 2 years ago

Hi @qiangqiang101 You seem to be using the library directly. The crash you see is probably due to an incorrectly filled cpuid array when constructing the IntelCPU instance. Can you show the call to the IntelCPU constructor?

pgrawehr commented 2 years ago

Closing this, as it was probably an error in library usage.

Feel free to reopen and provide additional details, if required.