PDA

Click to See Complete Forum and Search --> : Determining memory size....


cvaden
Jan 28th, 2002, 11:42 AM
Is there a way of determining how many bytes of memory you are using for an object or image or control, etc.. programmatically?

Say I had an image that I loaded and had it's .hdc. Is there some way to use varptr() or something to find its location in memory and then determine how many bytes it's using?

Any help would be appreciated....

C

Hack
Jan 28th, 2002, 12:45 PM
Probably with C or C++, but I don't think the amount of memory consumed by a single control on a VB form is something VB will return, although, at times, that would be handy. :)