Hmm I have used it for processor information perfectly fine, and I had the same error that I have now, only thing is, I don't know how I fixed it
Here is my code and the error:
Error: System.NullReferenceException was unhandledVB Code:
Dim query1 As New Management.SelectQuery("Win32_PhysicalMedia") Dim search1 As New Management.ManagementObjectSearcher(query1) Dim info1 As New Management.ManagementObject For Each info1 In search1.Get() RichTextBox1.Text = RichTextBox1.Text & vbNewLine & "Disks: " & info1("caption").ToString() ' & " - " & info("Status").ToString() Next
Message="Object reference not set to an instance of an object."
I wonder what is the problem....?











Reply With Quote