On 24.10.2017 10:48, el es via Lazarus wrote: > [...] >>> begin >>> repeat >>> until not ThreadNowInUse; // >>> >>> try >>> ThreadNowInUse :=true; >> Busy wait actions are usually a very bad idea Better use a TTimer for such. -Michael