Autor Beitrag
Payne85
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 53

Win2k
D3 Pers, D7
BeitragVerfasst: Fr 21.11.03 09:54 
Hallo,
also ich hab n Problem und zwar will ich mit Delphi 7 einen Dienst schreiben. Ich öffne das Standart Formular für "Service- Anwendung".
Sobald der Dienst startet schließt er sich gleich wieder obwohl noch ein zweiter Thread vorhanden ist indem ne schleife läuft, doch anscheinend überspringt der selbst das Ereignis OnStart - wenn ich dort nämlich ein "beep" reinschreibe passiert auch nix. Der Dienst wird nach ca.10 sek automatisch geschlossen egal was im quelltext steht. Bitte verweist NICHT auf das Tutorial von Assarbad(Ich möchte einen Timer etc verwenden)
Ich dachte es passt in die Sparte weil es sich ja nicht um Windows api Handelt.
Schonmal Danke für Antworten
Mfg
Payne85 Threadstarter
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 53

Win2k
D3 Pers, D7
BeitragVerfasst: Mi 26.11.03 14:07 
Habs gelöst für alle die die es wissen wollen: (Wieso konnte mir das keiner sagen?)
Also wenn man den dienst in delphi ausführt funktioniert er nicht(!), also muss man jedesmal wenn man ihn ausprobieren möchte erst mit *.exe /install starten und dann sieht man was man sich zusammengeprogged hat. (<-Das kann man ja überall lesen doch das es von delphi aus nicht funzt, steht nirgends-jedenfalls konnt ich nix finden)
mfg

_________________
Mitleid gibts umsonst, Neid muss man sich verdienen...
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Do 27.11.03 17:39 
ich bin auch grad debei mich mit diensten zu beschäftigen.
ist das ein dienst der ein delphi formular anzeigt ??

wenn ja wäre es nett, wenn du mir mal das projekt per e-mail senden könntest

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Do 27.11.03 20:10 
Jaja.. wiedermal das Thema Dienste und Fenster..! Ich hab dazu sowohl hier, als auch in der Delphi-Praxis als auch schon in anderen Foren erklärt was das Problem ist und warum die Fenster eines normalen Service nie irgendow auftauchen..! Such einfach mal nach dem Stichwort "WindowStation"..!

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
Payne85 Threadstarter
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 53

Win2k
D3 Pers, D7
BeitragVerfasst: Fr 28.11.03 08:44 
Ne du mein Dienst hat keine Fenster. Allerdings wollte ich nur mal testen wie das so ist einen dienst zu schreiben. Doch dabei hab ich mich zu weit ausm fenster gelehnt, denn ich wollte meinem Key Logger als Dienst schreiben. Doch dann ist mir aufgefallen, das ich doch garkein gültiges Handle vom Dienst bekomme und die kommunikation zwischen Dienst und Windows irgendwie "komisch" ist. Hab zwar dann mal hier im Forum gesucht und auch was gefunden, aber das war mir dann alles zu lästig bzw. ich habs auch nicht wirklich nachvollzeihen können. Auserdem läuft dann mein prog als Dienst nur unter NT basierenden BS´en.
Mfg

_________________
Mitleid gibts umsonst, Neid muss man sich verdienen...
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 01.12.03 17:06 
aha ok danke !

_________________
In the beginning was the word.
And the word was content-type: text/plain.