Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 6.0 Speed on Different PC
Message
From
05/01/2001 11:56:26
Mike Mattos
Nationwide Computers
Mississauga, Ontario, Canada
 
 
To
05/01/2001 11:29:36
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00457819
Message ID:
00459871
Views:
27
I have noticed that VFP can use memory rather recklessly, so I use the following


tc_totmem=SYS(1001)
tn_realmem=VAL(tc_totmem)/4
tc_mem=SYS(3050,2) && default background memory!

IF VAL(tc_mem) > 10000000
=SYS(3050,1,VAL(tc_mem))
ELSE
=SYS(3050,1,tn_realmem/4)
=SYS(3050,2,tn_realmem/4)
ENDIF

tc_f = ALLTRIM(STR( INT(VAL(SYS(3050,1))/1000000))) && foreground
tc_b = ALLTRIM(STR( INT(VAL(SYS(3050,2))/1000000))) && background
WAIT " This system uses " + tc_f + " MB ram per session " WINDOW NOWAIT


Seems to do the job for most situations! I found that the background/foreground thing was a nuisance, so I set them the same! Seemed to improve screen swaps!

I found some cases where less memory ran faster !
Previous
Reply
Map
View

Click here to load this message in the networking platform