AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

How many memory object require?

Ein Thema von WojTec · begonnen am 14. Mai 2011 · letzter Beitrag vom 16. Mai 2011
Antwort Antwort
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#1

How many memory object require?

  Alt 14. Mai 2011, 18:09
Delphi-Version: 2010
How can check how many memory is required for object?
  Mit Zitat antworten Zitat
Benutzerbild von Zacherl
Zacherl

Registriert seit: 3. Sep 2004
4.629 Beiträge
 
Delphi 10.2 Tokyo Starter
 
#2

AW: How many memory object require?

  Alt 14. Mai 2011, 18:18
You could check memory allocation in taskmanager before and after creating the object.
Projekte:
- GitHub (Profil, zyantific)
- zYan Disassembler Engine ( Zydis Online, Zydis GitHub)
  Mit Zitat antworten Zitat
Benutzerbild von sx2008
sx2008

Registriert seit: 15. Feb 2008
Ort: Baden-Württemberg
2.332 Beiträge
 
Delphi 2007 Professional
 
#3

AW: How many memory object require?

  Alt 14. Mai 2011, 18:34
Try class function TObject.InstanceSize.
If an object allocates other objects, dynamic arrays or strings this will not counted by the function InstanceSize.
  Mit Zitat antworten Zitat
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#4

Re: How many memory object require?

  Alt 14. Mai 2011, 18:35
So, I need manually check all data size?
  Mit Zitat antworten Zitat
Benutzerbild von s.h.a.r.k
s.h.a.r.k

Registriert seit: 26. Mai 2004
3.159 Beiträge
 
#5

AW: How many memory object require?

  Alt 14. Mai 2011, 18:38
Huh? 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.
»Remember, the future maintainer is the person you should be writing code for, not the compiler.« (Nick Hodges)
  Mit Zitat antworten Zitat
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#6

Re: How many memory object require?

  Alt 14. Mai 2011, 19:36
@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
  Mit Zitat antworten Zitat
Delphi-Laie

Registriert seit: 25. Nov 2005
1.474 Beiträge
 
Delphi 10.1 Berlin Starter
 
#7

AW: Re: How many memory object require?

  Alt 14. Mai 2011, 20:48
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?
  Mit Zitat antworten Zitat
Medium

Registriert seit: 23. Jan 2008
3.679 Beiträge
 
Delphi 2007 Enterprise
 
#8

AW: How many memory object require?

  Alt 16. Mai 2011, 00:39
[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]
"When one person suffers from a delusion, it is called insanity. When a million people suffer from a delusion, it is called religion." (Richard Dawkins)
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:05 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