Autor Beitrag
Hidden
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: Fr 07.03.08 19:28 
Hi,

Muss ich beim beenden eines Programms per Application.Terminate besonderes beachten, wird z.B. der Speicher eigeständig freigegeben?
Konkret: Muss ich irgendetwas zusätzliches machen, demit es sich genauso wie beim standard-Schließen-Button verhält?

mfG,

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Fr 07.03.08 20:31 
Delphi kümmert sich nur um den Speicher, den es selber angefordert hat. Wenn Du selber noch Instanzen instantiiert hast, die Du nicht dem Form, der Application oder einem anderen damit verbundenen Objekt zur Verwaltung überlassen hast, musst Du dich um diese selber kümmern.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Hidden Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: Fr 07.03.08 20:38 
Ja, also Standard...

Wollte nur wissen, ob beim normalen Schließen der Mainform noch andere Methoden aufgerufen werden.
Ich interpretiere das mal als nein, als danke.

mfG,

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Fr 07.03.08 20:48 
TForm.Close macht im Wesentlichen nichts anderes als folgendes:

ausblenden Delphi-Quelltext
1:
If Self = Application.MainForm Then Application.Terminate else Hide;					

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.