Kilho.net

Tag: Easy

IT

Uso dei thread in Delphi

Ecco un modo semplice per usare i thread in Delphi. synchronize va usato con criterio 🙂 Contenuto della funzione [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 :=…

Leggi tutto — Uso dei thread in Delphi