[fpc-devel]Memory consumption

Zbigniew Kuczbański zbyszek at router.pixel.pl
Thu Jun 27 12:36:46 CEST 2002


Hi,

This is very simple program.
I really dont know why HeapTrace unit show  memory consuption
I use FPC ver. 1.06, platform Win32.

Best regards
  Zbigniew Kuczbański


program PCLH8;
{$mode objfpc}

uses HEAPTRC, sysutils, crt;

var
  szDevNbr      : array[0..255] of Char;
  sDevName      : String;
begin
{ This is testing program. Unit HEAPTRC shows, that is memory leakage.
   I really don't know why??????
}
//  SetHeapTraceOutPut('PCLH8.mem');
    sDevName:='A testing string';
    StrPCopy(szDevNbr,sDevName);
    writeln('szDevNbr: ',szDevNbr);
    writeln('szDevName: ',sDevName);

  Halt(0);
end.








More information about the fpc-devel mailing list