Autor Beitrag
Biarchiv
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 688



BeitragVerfasst: Mi 18.01.06 13:47 
Hallo,

ich hab ein keines Programm gecoded das beim Starten eine Form aus gibt.
Nun auf den Klick auf Minimieren steht folgendes:

ausblenden Delphi-Quelltext
1:
2:
3:
Application.Minimize;
ShowWindow(Handle, SW_HIDE);
ShowWindow(Application.Handle, SW_HIDE);


Beim ersten mal Minimieren geht das program von 4500 KB auf nur 750 KB.

Nur wenn ich das Programm wieder öffne und mieder dor Minimiere dan
steht es bei 2050 KB, warum?

Obwohl alles gleich ist. Gibt es da irrgendwelche TIPPS um RAM Speicher zu sparen?
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Mi 18.01.06 13:58 
Auch mal auf den virtuellen Speicher geschaut? Normalerweise sollte sich der Speicherbedarf nicht groß ändern, wenn ich ein Fenster minimiere, oder irre ich da?

_________________
Bravery calls my name in the sound of the wind in the night...
Biarchiv Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 688



BeitragVerfasst: Do 19.01.06 11:15 
Hallo,

normal wird im virtuellen nichts ausgelagert da ich 512MB RAM hab und nur etwa 150MB belegt sind. Zuviel frei. Es scheint so als würde Windows noch immer die Grafikfenster aktiv im Hintergrund halten obwohl diese nicht gezeigt werden.

Liegen ja in der Taskleiste.
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Do 19.01.06 11:34 
Aslo das mit dem vurtuellen Speciehr stimmt so nicht, zumindest nicht unter Windows. Der virtuelle Speicher wird auch dann genutzt, wenn noch realer Speicher da ist.

Ich hab das grad mal mit meinem aktuellen Programm ausprobiert, wenn ichs minimiere geht der reale Speicher auf ca. 30% runter, der virtuelle steigt entsprechend.

_________________
Bravery calls my name in the sound of the wind in the night...
Amiga-Fan
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 534



BeitragVerfasst: Do 19.01.06 11:57 
windows hat einen speziellen Cache (für die grafischen elemente glaube ich, ich komme gerade nicht auf die bezeichnung), der mit dem minimieren geleert wird.

Darum rattert Firefox z. B. auch auf der Festplatte rum, wenn man ihn minimiert und direkt wieder maximiert...

_________________
- Leg dich nie mit einem Berufsprogrammierer an
- Wahre Profis akzeptieren keine einfachen Lösungen