Forum: Object-Pascal / Delphi-Language
Delphi
by xaromz,
17. Jul 2006
Hallo,
Wenn Du nur etwas im Thread abarbeiten willst, und der Thread unabhängig von Hauptprogramm ist (was er sein sollte), dann mach's doch so:
constructor HTTPDownload.Create(Const FDown: TStringList);
Begin
inherited Create(True); // <- suspendiert erzeugen
HTTPSocket := TIdHTTP.Create(Nil);
Down := TStringList.Create;
Down.Assign(FDown);
End;
Forum: Object-Pascal / Delphi-Language
Delphi
by xaromz,
17. Jul 2006
Hallo,
Du machst gleich zwei Fehler:
Erstens (Dein angesprochenes Problem):
onstructor HTTPDownload.Create(Const FDown: TStringList);
Begin
HTTPSocket:=TIdHTTP.Create(Nil);
Down:=TStringList.Create;
Down:=FDown; // <--