|
Last change
on this file was 145, checked in by chronos, 8 years ago |
- Added: Check memory leaks in debug build mode.
- Fixed: Various memory leaks.
|
|
File size:
717 bytes
|
| Line | |
|---|
| 1 | program project1;
|
|---|
| 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, UFormMain, UCompiler, USourceCode, UTargetCode, USourceExecutor, USourceGenerator
|
|---|
| 11 | { you can add units after this },
|
|---|
| 12 | SysUtils;
|
|---|
| 13 | {$R *.res}
|
|---|
| 14 |
|
|---|
| 15 | {$IFDEF DEBUG}
|
|---|
| 16 | const
|
|---|
| 17 | HeapTraceLog = 'heaptrclog.trc';
|
|---|
| 18 | {$ENDIF}
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 | begin
|
|---|
| 22 | {$IFDEF DEBUG}
|
|---|
| 23 | // Heap trace
|
|---|
| 24 | DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
|
|---|
| 25 | SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
|
|---|
| 26 | {$ENDIF}
|
|---|
| 27 |
|
|---|
| 28 | RequireDerivedFormResource:=True;
|
|---|
| 29 | Application.Initialize;
|
|---|
| 30 | Application.CreateForm(TForm1, Form1);
|
|---|
| 31 | Application.Run;
|
|---|
| 32 | end.
|
|---|
| 33 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.