Witam, mam pewnie trywialny problem, ale rady sobie z nim nie daje, mam np. dziesięć wątków uruchomionych za jednym zamachem, teraz z wątku trzeciego chciałbym wywołać jakąś procedurę, moje pytanie jak tego dokonać.
0
0
synchronize, albo thread3.nazwaprocedury;
0
One są tak odpalane:
Repeat
IF DLLFound.Count = 0 Then Exit;
INC(I);
IF FileExists(DLLFound.Strings[I]) Then
Begin
FThread := TBinThread.Create(MainForm.Handle, DLLFound.Strings[I]);
TBinThread(FThread).Resume;
End;
Until I = DLLFound.Count - 1;
I w tym kłopot że wszystkie odpalane są z jednej zmiennej.
0
Repeat
IF DLLFound.Count = 0 Then Exit;
INC(I);
IF FileExists(DLLFound.Strings[I]) Then
Begin
with TBinThread.Create(MainForm.Handle, DLLFound.Strings[I]) do
Resume;
End;
Until I = DLLFound.Count - 1;