Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi How many memory object require? (https://www.delphipraxis.net/160466-how-many-memory-object-require.html)

WojTec 14. Mai 2011 18:09

Delphi-Version: 2010

How many memory object require?
 
How can check how many memory is required for object?

Zacherl 14. Mai 2011 18:18

AW: How many memory object require?
 
You could check memory allocation in taskmanager before and after creating the object.

sx2008 14. Mai 2011 18:34

AW: How many memory object require?
 
Try class function TObject.InstanceSize.
If an object allocates other objects, dynamic arrays or strings this will not counted by the function InstanceSize.

WojTec 14. Mai 2011 18:35

Re: How many memory object require?
 
So, I need manually check all data size?

s.h.a.r.k 14. Mai 2011 18:38

AW: How many memory object require?
 
Huh? :gruebel: This is the Delphi way. Or do you expect that you get the complete implementation of your problem?

-- Edit: Oh... You changed your post. Yes, you have to. There is no property or something like this.

WojTec 14. Mai 2011 19:36

Re: How many memory object require?
 
@s.h.a.r.k, I don't refreshed page and don't saw @sx2008 post ;)

Ok, I see, now I have idea how to do it, thanks :)

Delphi-Laie 14. Mai 2011 20:48

AW: Re: How many memory object require?
 
Ich stelle mir gerade vor, man plautzt in ein angelsächsisches Forum mit einer Fraga auf seinem Festlandsgermanisch hinein. Ob man darauf überhaupt eine Antwort bekäme?

Medium 16. Mai 2011 00:39

AW: How many memory object require?
 
[ot]
Vermutlich nicht, es sei denn da findet sich ein Deutscher. Einer der Vorteile eines nicht-englischen Forums: Es ist doch recht wahrscheinlich, dass sich viele Leute finden, die mehr als nur eine Sprache - Englisch - können, und auch bereit sind diese zu benutzen ;)

Und gerade bei Englisch... also als Programmierer ist das finde ich mal Pflichtprogramm. Das MUSS man zumindest einigermaßen drauf haben.

---

Probably not, except if there is some german dudes. One of the benefits of not being an English forum: There's a good chance that most people will be capable of, and willing to provide help in more than just one language - English ;)

Especially with English... as a programmer that ist a must. You just HAVE to know it at least on a basic level.
[/ot]


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:06 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz