Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memory Question - Missing Memory
Message
From
18/03/2003 19:47:15
Donald Lowrey
Data Technology Corporation
Las Vegas, Nevada, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Memory Question - Missing Memory
Miscellaneous
Thread ID:
00767326
Message ID:
00767326
Views:
49
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
Map
View

Click here to load this message in the networking platform