Recent

Author Topic: cthreads error message on program exit  (Read 311 times)

DimTim

  • New Member
  • *
  • Posts: 27
cthreads error message on program exit
« 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.

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 970
Re: cthreads error message on program exit
« Reply #1 on: May 14, 2022, 11:36:34 am »
I can't reproduce this on Ubuntu 18.03/x86-64.

avra

  • Hero Member
  • *****
  • Posts: 2353
    • Additional info
Re: cthreads error message on program exit
« Reply #2 on: May 14, 2022, 02:05:39 pm »
Is cthreads the first unit included in your console application?
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

 

TinyPortal © 2005-2018