Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find out how much memory object occupies?

Status
Not open for further replies.

Vojta

Programmer
Dec 8, 2004
1
AT
Hello:)

Please, is there any way to find out how much memory occupies object in memory? If I create two objects of the same type do they share procedures or does each allocate momory for it's own procedures?

I want to create image thumbnail view component. To display thumbnails I want to create simple component for each thumbnail that will contain small image, original image size and file name. I need to create big number of such objects and place them on ScrollBox. I noticed that TGraphicControl is too huge for my purpose so I will have to develop my own simple WinControl. I need to know how much memory such object will take to find out if this is good way. I don't want to use TListView.

Thanks:) Vojta
 
You can get the size of anything with sizeof,
I would say that objects of a defined type use the same code memory


Steve
Be excellent to each other and Party on!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top