cthreads error message on program exit lazarus / 32-Linux ---------------------------------------------------------------------- DimTim · 2022-05-12 04:17 In trunk version, when cthreads unit is used in a console Linux program, on the program termination an error message is shown, no matter whether  threading was used or not; it's enough to include "cthreads" in uses clause: Code: Text  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i free(): invalid pointer                       Aborted  In stable version 2.2 all works OK. Linux code was cross-compiled from Windows, tested on WSL and Raspberry Pi. ---------------------------------------------------------------------- Jonas Maebe · 2022-05-14 09:36 I can't reproduce this on Ubuntu 18.03/x86-64. ---------------------------------------------------------------------- avra · 2022-05-14 12:05 Is cthreads the first unit included in your console application?