On Tue, 24 Oct 2017 08:59:36 +0100 el es via Lazarus <lazarus at lists.lazarus-ide.org> wrote: >[...] > begin > repeat > until not ThreadNowInUse; // > > try > ThreadNowInUse :=true; This is not thread safe. Mattias