| 1 | program ChronIS;
|
|---|
| 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, UCore, CoolStreaming, UAttendance, CoolWeb, Common,
|
|---|
| 11 | CoolTranslator, UFormSetting, SysUtils, UFormList, UFormEdit, UDataView,
|
|---|
| 12 | URegistredModules, TemplateGenerics, synapse, TEditExtensions, PinConnection,
|
|---|
| 13 | PrintPreview, UFormConnection, UModuleAttendance, UDataModel,
|
|---|
| 14 | UFormVirtualTerminal, UAccessControler, UModuleChiyuAccessControlers,
|
|---|
| 15 | UTerminalBF630, UMenu;
|
|---|
| 16 |
|
|---|
| 17 | {$R *.res}
|
|---|
| 18 |
|
|---|
| 19 | {$IFDEF DEBUG}
|
|---|
| 20 | const
|
|---|
| 21 | HeapTraceLog = 'heaptrclog.trc';
|
|---|
| 22 | {$ENDIF}
|
|---|
| 23 |
|
|---|
| 24 | begin
|
|---|
| 25 | {$IFDEF DEBUG}
|
|---|
| 26 | // Heap trace
|
|---|
| 27 | DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
|
|---|
| 28 | SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
|
|---|
| 29 | {$ENDIF}
|
|---|
| 30 |
|
|---|
| 31 | RequireDerivedFormResource := True;
|
|---|
| 32 | Application.Initialize;
|
|---|
| 33 | Application.CreateForm(TCore, Core);
|
|---|
| 34 | Application.CreateForm(TFormMain, FormMain);
|
|---|
| 35 | Application.CreateForm(TFormSetting, FormSetting);
|
|---|
| 36 | Application.CreateForm(TFormConnection, FormConnection);
|
|---|
| 37 | Application.Run;
|
|---|
| 38 | end.
|
|---|
| 39 |
|
|---|