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

WIN XP pro
D7
BeitragVerfasst: Do 09.02.06 23:26 
Hallo zusammen.

Problem: Ich beende mein Hauptformular mit Application.Terminate allerdings läuft laut Delphi das Programm weiter und wird nicht gänzlich beendet. Wenn ich die .exe starte bleibt das Programm in den Prozessen vorhaben.


Lösung: ???


Vielen Dank schon mal

Christian

_________________
Chaos, Panic, Disorder - My work here is done
Robinator
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 275

WinXP
BDS 2006
BeitragVerfasst: Do 09.02.06 23:33 
Application.Terminate beendet nicht dein Hauptformular, sondern ansich die ganze anwendung ( Terminate is called automatically on a WM_QUIT message and when the main form closes.) Warum das bei dir nicht funktioniert, kann ich ohne genauere fehlerbeschreibung leider auch nicht erkennen. Was läuft denn während du beendest?

grüsse RoB
chefkoch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

WIN XP pro
D7
BeitragVerfasst: Do 09.02.06 23:36 
Wenn ich beende läuft ein Formular und mein Hauptformular (Login-Screen) im Hintergrund..

_________________
Chaos, Panic, Disorder - My work here is done
Robinator
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 275

WinXP
BDS 2006
BeitragVerfasst: Do 09.02.06 23:46 
Poste doch bitte mal deinen Quellcode...
So wie ich das bis jetzt verstanden habe leuchtet mir nicht ein wo sich da ein fehler eingeschlichen haben könnte ;)

grüsse Rob
chefkoch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

WIN XP pro
D7
BeitragVerfasst: Do 09.02.06 23:50 
ich glaube du möchtest nicht, dass ich hier ca. 10.000 Zeilen Quellcode poste oder ...

Naja .. probiere nochmal selber .. *verzweifel*

_________________
Chaos, Panic, Disorder - My work here is done
0xCC
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 150



BeitragVerfasst: Do 09.02.06 23:51 
warum nicht einfach form1.close; form2.close; ?
oder ExitProcess(0); :mrgreen:
chefkoch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

WIN XP pro
D7
BeitragVerfasst: Do 09.02.06 23:57 
sche***:: exitprocess(0) war einfach zu einfach .. vielen dank

_________________
Chaos, Panic, Disorder - My work here is done
Robinator
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 275

WinXP
BDS 2006
BeitragVerfasst: Do 09.02.06 23:59 
...ist auch keine "saubere" lösung, da deinem Programm ( wenn ich da richtig informiert bin ) keine zeit bleibt regulär zu beenden.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Fr 10.02.06 00:25 
Man sollte sich bewußt sein, dass nach dem Aufruf von Application.Terminate oder ExitProcess die Ereignisse OnCloe und OnDestroy nicht mehr durchlaufen werden.