Hey... I have used this code many times before on other projects. But now im gettign this...
Works if I debug on Visual Studio, but if I launch it using .exe, it gives me this
Code that gets HWID
It happens when I click login button.
Works if I debug on Visual Studio, but if I launch it using .exe, it gives me this
Code:
System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
Code:
Dim hwid As String = String.Empty
Dim mc As New ManagementClass("win32_processor")
Dim moc As ManagementObjectCollection = mc.GetInstances()
For Each mo As ManagementObject In moc
If hwid = "" Then
hwid = mo.Properties("processorID").Value.ToString()
Exit For
End If
Next