IT
Read more — Using Threads in Delphi
Using Threads in Delphi
Here’s an easy way to use threads in Delphi. Just use synchronize properly 🙂 Function [code lang=”delphi”] uses System.Classes, System.SysUtils, Vcl.Forms; procedure Wait(Proc: TProc); var Thread: TThread; begin Thread := TThread.CreateAnonymousThread(procedure() begin Proc; end); Thread.FreeOnTerminate := True; Thread.Start; while not…

