On 06/02/2019 09:01, Luca Olivetti wrote: > I still think there's something wrong with thread in fpc 3.0.4. There is https://bugs.freepascal.org/view.php?id=34640 FIxed in 3.2 branch If you can compile your app for linux, run it under valgrind, especially the helgrind tool.