General information
Title:
Memory Question - Missing Memory
Hi All
I was curious about how memory is allocated in VFP and noticed that there is an unaccounted for 30 meg of memory. Copy and run this from the command window. Do you get the same result? Or did I miss something?
Thanks
Don Lowrey
**
* testmem.prg
*--Test memory
CLEAR
* Reset Buffer Memory to System defaults
SYS(3050,1,0)
SYS(3050,2,0)
*Get total Fox Mem, Foreground and Background Mem
lntotal = ROUND(INT(VAL(SYS(1001)))/1024^2/4,2)
lnfore = ROUND(INT(VAL(SYS(3050,1)))/1024^2,2)
lnback = ROUND(INT(VAL(SYS(3050,2)))/1024^2,2)
* Compare
? lntotal && 128MB machine
? lnfore + lnBack
? lntotal - lnfore - lnBack && Where is the 30 meg dif?
Next
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