if (GAntiFreeze <> nil) and InMainThread then begin if ((not GAntiFreeze.OnlyWhenIdle) or AIdle or AOverride) and GAntiFreeze.Active then GAntiFreeze.Process; end;