multithreading - Why my Thread run after Form creation? -
I have a project after main form my
threads has been made . But this code does not work correctly:
Type TMyThread = class (TThread) executed public process; Override; Process duplicates; End; { type } . . . Process TForm1.FormCreate (Sender: TObject); Var thrd: TMyThread; Start Thrd: = TMyThread.Create (True); Thrd.Resume; // The following code will tell about 5 seconds to show the time delay of `form '... end; . . . TMyThread.Execute Process; Heritage begins; DoProc; End; Process TMyThread.doProc; Warfare: TIFR; Start AForm: = TForm.Create (zero); AForm.Caption: = 'Thread form'; Forearm Position: = POSCREENCENTRE; Forum.formstyle: = fstaonoptop; AForm.Show; End; I do not want to use the
synchronize . One way to exclude my
threads from the main code is
Comments
Post a Comment