Lazarus

Programming => Operating Systems => Linux => Topic started by: DimTim on May 12, 2022, 06:17:53 am

Title: cthreads error message on program exit
Post by: DimTim on May 12, 2022, 06:17:53 am
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][+][-]
  1. free(): invalid pointer
  2.                        Aborted
  3.  

In stable version 2.2 all works OK.

Linux code was cross-compiled from Windows, tested on WSL and Raspberry Pi.
Title: Re: cthreads error message on program exit
Post by: Jonas Maebe on May 14, 2022, 11:36:34 am
I can't reproduce this on Ubuntu 18.03/x86-64.
Title: Re: cthreads error message on program exit
Post by: avra on May 14, 2022, 02:05:39 pm
Is cthreads the first unit included in your console application?
TinyPortal © 2005-2018