Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object Memory Usage
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00695092
Message ID:
00695105
Views:
12
>Does anyone know of a way to get Memory Usage for a given Object. I've tried storing Sys(1016) to nMem, create the object, and subtract nMem from Sys(1016)- but I'm not sure that the result is 100% correct.
>
>Isn't there a better way?
>

Barry,
I suggest creating a lot of your objects. From one Sys(1016) reading, VFP could be doing something behind the scenes. If you create a large number of them and average the memory used, you should get a more accurate number.

Steven Black does something like this for his memory usage test module (as see here: http://fox.wikis.com/wc.dll?Wiki~TestMemoryCreateDestroy~VFP).

Regards.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform