[fpc-pascal] CMem issue?

dinmil dinmil at gmail.com
Tue Mar 8 19:35:16 CET 2016


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.



More information about the fpc-pascal mailing list