Hi There,
The Property My.Computer.Info.TotalPhysicalMemory seems to be a bit off. My physical RAM is 768Mb, whereas that Property returns 804Mb. I have confirmed this gap on two other boxes as well.
Soooo, I have used an expression to calculate the amount of RAM in use:
In light of the discrepancy above, will my calculation be correct, or should it be more along the lines of (pseudocode):
Thanks
The Property My.Computer.Info.TotalPhysicalMemory seems to be a bit off. My physical RAM is 768Mb, whereas that Property returns 804Mb. I have confirmed this gap on two other boxes as well.
Soooo, I have used an expression to calculate the amount of RAM in use:
VB.NET:
Me.lblRAM.Text = Math.Round((My.Computer.Info.TotalPhysicalMemory - _
My.Computer.Info.AvailablePhysicalMemory) / 1000000).ToString() & " Mb"
In light of the discrepancy above, will my calculation be correct, or should it be more along the lines of (pseudocode):
VB.NET:
RAM Used = 768 - available physical memory
Thanks