I have just installed an extra 2GB of RAM in my PC (Win XP SP1, x86), making it 4GB, and have setup a new Windows 7 Enterprise SP1 x64 machine, and find that the Memorysize() function does not return the correct values on both machines.
The 32-bit XP returns 2047 for Total Physical RAM
The 64-bit Win 7 returns 4095 for Total Physical RAM.

Anyone else have similar problems?

Using the Memory() UDF written by Glenn Barnes, this returns 3548 Megabytes on the 32-bit machine, which is correct, but then it returns only 519 megabytes of RAM on the 64-bit machine.

The sysinternals PSINFO tool also wrongly returns 518 MB on the 64-bit machine.

Tried it on Kixtart 4.53, 4.61 & 4.62

TIA,

Bill
_________________________
Bill