2012-04-19 14:36:23 +00:00
|
|
|
program TDIDemo;
|
|
|
|
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
|
|
|
|
uses
|
|
|
|
{$IFDEF UNIX}{$IFDEF UseCThreads}
|
|
|
|
cthreads,
|
|
|
|
{$ENDIF}{$ENDIF}
|
|
|
|
Interfaces, // this includes the LCL widgetset
|
2012-04-25 14:26:34 +00:00
|
|
|
Forms, uMainForm, uForm2, sysutils
|
2012-04-19 14:36:23 +00:00
|
|
|
{ you can add units after this };
|
|
|
|
|
|
|
|
{$R *.res}
|
|
|
|
|
2012-04-25 14:26:34 +00:00
|
|
|
var
|
|
|
|
HeapTraceFile : String ;
|
2012-04-19 14:36:23 +00:00
|
|
|
begin
|
2012-04-25 14:26:34 +00:00
|
|
|
|
|
|
|
HeapTraceFile := ExtractFilePath(ParamStr(0))+ 'heaptrclog.trc' ;
|
|
|
|
DeleteFile( HeapTraceFile );
|
|
|
|
SetHeapTraceOutput( HeapTraceFile );
|
|
|
|
|
2012-04-19 14:36:23 +00:00
|
|
|
Application.Initialize;
|
|
|
|
Application.CreateForm(TfMainForm, fMainForm) ;
|
2012-04-20 12:39:44 +00:00
|
|
|
Application.CreateForm(TForm2, Form2) ;
|
2012-04-19 14:36:23 +00:00
|
|
|
Application.Run;
|
|
|
|
end.
|
|
|
|
|