I tried to save the MaximumApplicationAddress
from SystemInfo
into an uint
, but I get a System Overflow Exception
:
System.OverflowException: The arithmetic operation caused an overflow
I tried a lot and also googled a lot, but nothing helps. If I convert or if I use an decimal, nothing helped.
Here is the problematic code:
private uint _maxAddress;
public MemorySearch()
{
SystemInfo info;
GetSystemInfo(out info);
// This line throws a System.OverflowException:
_maxAddress = (uint)info.MaximumApplicationAddress;
resetFields();
}
Here's a screenshot of the error:
Any ideas?