source: branches/overos/overos.lpr

Last change on this file was 39, checked in by chronos, 11 months ago
  • Modified: Simplified unit names.
File size: 736 bytes
Line 
1program overos;
2
3{$mode objfpc}{$H+}
4
5uses
6 {$IFDEF UNIX}{$IFDEF UseCThreads}
7 cthreads,
8 {$ENDIF}{$ENDIF}
9 Interfaces, // this includes the LCL widgetset
10 Forms, FormMain, Os.Window, Os.Mouse, Os.System, Os.Types, Os.Controls,
11 Os.Graphics, Os.Application, SysUtils
12 { you can add units after this };
13
14{$R *.res}
15
16{$if declared(UseHeapTrace)}
17const
18 HeapTraceLog = 'heaptrclog.trc';
19{$ENDIF}
20
21begin
22 {$if declared(UseHeapTrace)}
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(TFormMain, FormMain.FormMain);
31 Application.Run;
32end.
33
Note: See TracBrowser for help on using the repository browser.