You've already forked lazarus-ccr
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2446 8e941d3f-bd1b-0410-a28a-d453659cc2b4
29 lines
570 B
ObjectPascal
29 lines
570 B
ObjectPascal
program TDIDemo;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
uses
|
|
{$IFDEF UNIX}{$IFDEF UseCThreads}
|
|
cthreads,
|
|
{$ENDIF}{$ENDIF}
|
|
Interfaces, // this includes the LCL widgetset
|
|
Forms, uMainForm, uForm2, sysutils
|
|
{ you can add units after this };
|
|
|
|
{$R *.res}
|
|
|
|
var
|
|
HeapTraceFile : String ;
|
|
begin
|
|
|
|
HeapTraceFile := ExtractFilePath(ParamStr(0))+ 'heaptrclog.trc' ;
|
|
DeleteFile( HeapTraceFile );
|
|
SetHeapTraceOutput( HeapTraceFile );
|
|
|
|
Application.Initialize;
|
|
Application.CreateForm(TfMainForm, fMainForm) ;
|
|
Application.CreateForm(TForm2, Form2) ;
|
|
Application.Run;
|
|
end.
|
|
|