>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.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao