Autor Beitrag
<TargeT>
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 59

Win XP, Win 98
Delphi 7
BeitragVerfasst: Mi 06.08.08 00:55 
Moin,
Ich habe mal eine Frage und zwar möchte ich zwei proceduren "gleichzeitig" aufrufen, dies wollte ich so machen:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
type
  TForm1 = class(TForm)
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
    procedure Eins(Mainform: TForm);
    procedure Zwei(Mainform: TForm);
.........

procedure TForm1.Button1Click(Sender: TObject);
begin
 Eins (Self);
 Zwei (Self);
end;

Das dies nicht 100% gleichzeitig ist, ist mir klar und ist auch so ok. Das Problem ist jetzt nachdem ich auf Button1 klicke wird erst "Eins (Self)" ausgeführt und erst wenn "Eins (Self)" beendet ist wird "Zwei (Self)" gestartet. Weis jemand wie ich beide proceduren fast gleichzeitig durchlaufen lassen kann?

Lg <TargeT>
platzwart
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1054
Erhaltene Danke: 78

Win 7, Ubuntu 9.10
Delphi 2007 Pro, C++, Qt
BeitragVerfasst: Mi 06.08.08 01:21 
Schau hier im Forum nach "Threads", das dürfte genau das sein, was du suchst...