Autor Beitrag
Hendi48
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 271



BeitragVerfasst: Sa 22.09.07 00:01 
Hi,
ich habe einen Download-Thread mit einem TIdHTTP drin. Es funzt auch alles, nur ich kann den Download nicht stoppen. Also einfachste Lösung - DLThread.FidHTTP.Disconnect - das klappt auch, nur kommt so ein seltsamer Fehler. Es ist eine Exception mit der Überschrift "Fehler!" und drin steht einfach nur "Disconnected.". Dachte ich mir ok das kann man ja unterdrücken, tu ich try except drum, der Fehler kommt trotzdem. Weiß jemand wie ich den Fehler vermeiden kann / den Thread irgendwie anders killen kann?
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 24.09.07 11:42 
Moin!

Zeig doch mal den Code deiner Thread-Klasse; ohne ist das immer so ein gestochere... :? ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Master_of_Magic
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 56

Win 98, Win XP
D6 Pers, D2005 Arch
BeitragVerfasst: Mo 24.09.07 12:09 
Ich kann Narses nur zustimmen. Unsere Glaskugeln sind manchmal etwas unzuverlässig ...

Aber was deine Exception angeht: Wenn du dein Programm in Delphi (->Debugger) startest, kommt die Meldung auch trotz des try-except-Blocks. Startest du das Programm jedoch alleine, sollte nichts zu sehen sein.
Die Anzeige der Exception kannst du in den Projektoptionen deaktivieren - würde ich allerdings nicht empfehlen.
Hendi48 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 271



BeitragVerfasst: Mo 24.09.07 12:26 
Ah, ich weiß jetzt schon wo es her kommt ich habs gefunden im Thread :roll:
Trotzdem danke!