program ChronOS; {$mode objfpc}{$H+} uses {$IFDEF UNIX} //{$IFDEF UseCThreads} cthreads, //{$ENDIF} {$ENDIF} Interfaces, // this includes the LCL widgetset Forms, SysUtils, FormMain, Clock, MemoryManager, PlatformBase, ThreadEx, FormTerminal; {$R *.res} {$IFDEF DEBUG} const HeapTraceLog = 'heaptrclog.trc'; {$ENDIF} begin {$IFDEF DEBUG} // Heap trace DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog); SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog); {$ENDIF} RequireDerivedFormResource := True; Application.Initialize; Application.CreateForm(TFormMain, FormMain.FormMain); Application.CreateForm(TFormTerminal, FormTerminal.FormTerminal); Application.Run; end.