Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42215

VS 2008 Trying to get hardware ID: System.OutOfMemoryException

$
0
0
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:

System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
Code that gets HWID
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

It happens when I click login button.

Viewing all articles
Browse latest Browse all 42215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>