>Have a brand new machine running Windows 7 64 Bit with 8 Gig or RAM.
>
>Have used the statement SYS(3050, 1, VAL(SYS(3050,1,0))/3) for allocating Memory for years without a problem. Also runs OK on Win 7 both 32 & 64 Bit machines with 4 Gig of Memory.
>
>Have read on Wik: i
http://fox.wikis.com/wc.dll?Wiki~sys3050 that the old 1/3 trick doesn't work on machines with more than 6 Gig or RAM.
>
>Also see that SYS(3050,1,0) returns a negative number on my 8 Gig machine.
>
>Any suggestions anyone?
If value is negative, what about adding 2^32 to it? I presume what is happening is that return value is being interpreted as a signed integer rather than unsigned, and adding 2^32 to it should "fix" the value.