Line | |
---|
1 | program Demo;
|
---|
2 |
|
---|
3 | {$mode objfpc}{$H+}
|
---|
4 |
|
---|
5 | uses
|
---|
6 | {$IFDEF UNIX}{$IFDEF UseCThreads}
|
---|
7 | cthreads,
|
---|
8 | {$ENDIF}{$ENDIF}
|
---|
9 | Interfaces, // this includes the LCL widgetset
|
---|
10 | Forms, SysUtils, UMainForm;
|
---|
11 |
|
---|
12 | {$R *.res}
|
---|
13 |
|
---|
14 | {$IFDEF DEBUG}
|
---|
15 | const
|
---|
16 | HeapTraceLogFileName = 'heaptrclog.trc';
|
---|
17 | {$ENDIF}
|
---|
18 | begin
|
---|
19 | {$IFDEF DEBUG}
|
---|
20 | DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLogFileName);
|
---|
21 | SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLogFileName);
|
---|
22 | {$ENDIF}
|
---|
23 | Application.Initialize;
|
---|
24 | Application.CreateForm(TMainForm, MainForm);
|
---|
25 | Application.Run;
|
---|
26 | end.
|
---|
27 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.