|
Last change
on this file was 41, checked in by chronos, 9 years ago |
- Modified: Avoid loading images from files by putting them to hidden form as component.
|
|
File size:
671 bytes
|
| Line | |
|---|
| 1 | program BigMetro;
|
|---|
| 2 |
|
|---|
| 3 | {$mode objfpc}{$H+}
|
|---|
| 4 |
|
|---|
| 5 | uses
|
|---|
| 6 | {$IFDEF UNIX}
|
|---|
| 7 | cthreads, clocale,
|
|---|
| 8 | {$ENDIF}
|
|---|
| 9 | Interfaces, // this includes the LCL widgetset
|
|---|
| 10 | Forms, SysUtils, UFormMain, UEngine, UGeometric, UTrack, UMetaCanvas,
|
|---|
| 11 | UFormImages;
|
|---|
| 12 |
|
|---|
| 13 | {$R *.res}
|
|---|
| 14 |
|
|---|
| 15 | {$IFDEF DEBUG}
|
|---|
| 16 | const
|
|---|
| 17 | HeapTraceLog = 'heaptrclog.trc';
|
|---|
| 18 | {$ENDIF}
|
|---|
| 19 |
|
|---|
| 20 | begin
|
|---|
| 21 | {$IFDEF DEBUG}
|
|---|
| 22 | // Heap trace
|
|---|
| 23 | DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
|
|---|
| 24 | SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
|
|---|
| 25 | {$ENDIF}
|
|---|
| 26 |
|
|---|
| 27 | RequireDerivedFormResource := True;
|
|---|
| 28 | Application.Initialize;
|
|---|
| 29 | Application.CreateForm(TFormMain, FormMain);
|
|---|
| 30 | Application.CreateForm(TFormImages, FormImages);
|
|---|
| 31 | Application.Run;
|
|---|
| 32 | end.
|
|---|
| 33 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.