Autor Beitrag
chefkoch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

WIN XP pro
D7
BeitragVerfasst: Sa 11.02.06 18:11 
Tag zusammen.

Habe in einem Programm zum Beenden in eine Form in das OnClose-Event : Application.Terminate durchgeführt.

Die Forms werden auch geschlossen, aber Delphi bleibt im Application running.

Die Compilierte Exe bleibt im Task Manager hängen ... Idee ??

Thx
Chefkoch

_________________
Chaos, Panic, Disorder - My work here is done
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: Sa 11.02.06 18:24 
Im OnClose-Event darfst Du Application.Terminate nicht aufrufen, da dies zu einer Rekursion führt.

Wenn OnClose der Mainform ausgeführt wird, wird die Anwendung bereits beendet.

Ansonsten versuch mal eine Abfrage:

ausblenden Delphi-Quelltext
1:
2:
If not Application.Terminated Then
    Application.Terminate;

_________________
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.
chefkoch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

WIN XP pro
D7
BeitragVerfasst: Sa 11.02.06 18:32 
normalerweise sollte es ja auch funktionieren in einem nebenformular mainform.close auszuführen ..
geht allerdings auch nicht .. auch die abfrage funzt net .. das einzige was hilft ist exitprocess(0)..
aber das ist nicht allzu sauber .. oder ?

_________________
Chaos, Panic, Disorder - My work here is done