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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only