Oh what's in a number....480000000 vs 536870912.

LOL

On 11/1/2013 4:28 PM, Richard Kaye wrote:
VFP was designed in an era when the operating system couldn't use more than 2GB 
of RAM. I forget where I saw this (could have been Christof, could have been 
wOOdy) but I long ago switched to this:

SYS(3050,1,480000000)
SYS(3050,2,480000000)

Keep it simple... :-)

--
rk


-----Original Message-----
From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of MB Software 
Solutions, LLC
Sent: Friday, November 01, 2013 4:20 PM
To: profoxt...@leafe.com
Subject: VFP9SP2 on Win7 error trying to maximize memory

Had one user's WIn7 Pro machine (8GB RAM) fail on this code:

                  SYS(3050,1,MIN(536870912, VAL(SYS(3050,1,0))))
                  SYS(3050,2,MIN(536870912, VAL(SYS(3050,1,0))))

...because the MIN(..) arg returned -1351876608.

Looks like I should add a ABS(..) around the whole thing to avoid the error.  I 
should update the Fox Wiki too as I got the code from there.

Heads up in case you use the same code...

--
Mike Babcock, MCP


[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/5274119d.5030...@mbsoftwaresolutions.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to