I need to execute a function in a separate thread and wait for the thread to finish.
For example, here is the original function:
Procedure Search; begin CallA; CallB; end;
This is a modified function:
Procedure Search; var testMyThread: TMyThread; Done: Boolean; begin
Could you tell me why the thread code above does not work ( CallA never executes) if I use Synchronize inside TMyThread.Execute ?
source share