okay ich habs, thread war das stichwort...aber viel simpler
Delphi-Quellcode:
function GetLogText(Parameter : Pointer) : Integer;
begin
while true do begin
writeln(logtext);
sleep(5000);
end;
end;
var
id1:LongWord;
BeginThread(nil, 0, Addr(GetLogText), nil, 0, id1);
danke allen