I use CodeTyphon for programming. New version have similar error. CodeTyphon-570 use FreePascal 3.1.1 Source 02-03-2016 SVN Rev 33143 with some modification by CT people. For CT-570 I use solution like this. Basically remove cmem when in debug mode. For production (without debug) use cmem.
program TestSerial; {$mode objfpc}{$H+} uses {$IFOPT D-} cmem, // CT570 does not like debug mode with cmem {$ENDIF} {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Interfaces, // this includes the LCL widgetset Forms, FrmMainTestSerial { you can add units after this }; {$R *.res} begin RequireDerivedFormResource := True; Application.Initialize; Application.CreateForm(TfMainTestSerial, fMainTestSerial); Application.Run; end. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/CMem-issue-tp5724477p5724501.html Sent from the Free Pascal - General mailing list archive at Nabble.com. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal