-
Notifications
You must be signed in to change notification settings - Fork 35
/
FreeShip.dpr
executable file
·464 lines (421 loc) · 19.9 KB
/
FreeShip.dpr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
{#############################################################################################}
{ This code is distributed as part of the FREE!ship project. FREE!ship is an }
{ open source surface-modelling program based on subdivision surfaces and intended for }
{ designing ships. }
{ }
{ Copyright © 2005, by Martijn van Engeland }
{ Copyright © 2007-2012 by Timoshenko V.F. }
{ e-mail : vftim@rambler.ru }
{ FREE!ship project page : www.FREEship-plus.pisem.su }
{ FREE!ship homepage : www.FREEship-plus.pisem.su }
{ }
{ Copyright © 2015-2015, Conversion to FPC/Lazarus by Mark Malakanov. }
{ }
{ This program is free software; you can redistribute it and/or modify it under }
{ the terms of the GNU General Public License as published by the }
{ Free Software Foundation; either version 2 of the License, or (at your option) }
{ any later version. }
{ }
{ This program is distributed in the hope that it will be useful, but WITHOUT ANY }
{ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A }
{ PARTICULAR PURPOSE. See the GNU General Public License for more details. }
{ }
{ You should have received a copy of the GNU General Public License along with }
{ this program; if not, write to the Free Software Foundation, Inc., }
{ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA }
{ }
{#############################################################################################}
{$DEFINE NoDBGMEMMGR}
{$DEFINE NoMEMCHECK}
program FreeShip;
{$mode objfpc}{$H+}
//{$DEFINE CREATE_TRANSLATION}
uses
// this is to load custom libfreehttps.so library. Look to FreeUpdateDlg.pas
{$IF defined(unix) and (FPC_FULLVERSION < 32000)}
//cmem,
{$ifdef unix}cthreads,{$endif}
{$endif}
{$IFDEF DBGMEMMGR}
DbgMemMgr,
{$ENDIF}
{$IFDEF MEMCHECK}
MemCheck, // Memcheck is used for memory-leak tracking (debugging all)
{$ENDIF}
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Controls,
Forms, Dialogs, StdCtrls,
SysUtils,
{$IFDEF VER3}
LazUTF8,
LazFileUtils,
{$ELSE}
FileUtil, //deprecated
{$ENDIF}
Interfaces, // this includes the LCL widgetset
//DefaultTranslator,
LCLTranslator,
FreeStringsUnit in 'Units/FreeStringsUnit.pas',
Main in 'Forms/Main.pas' {MainForm},
FreeVersionUnit in 'Units/FreeVersionUnit.pas',
FreeLogger in 'Units/FreeLogger.pas'
{$IFDEF exclude}
freehullformwindow_panel in 'Forms/FreeHullformWindow.pas' {FreeHullWindow},
FreeLayerDlg in 'Forms/FreeLayerDlg.pas' {FreeLayerDialog},
FreeNewModelDlg in 'Forms/FreeNewModelDlg.pas' {FreeNewModelDialog},
FreeSplashWndw in 'Forms/FreeSplashWndw.pas' {FreeSplashWindow},
FreeVersionUnit in 'Units/FreeVersionUnit.pas',
FreeIntersectionDlg in 'Forms/FreeIntersectionDlg.pas' {FreeIntersectionDialog},
FreeExtrudeDlg in 'Forms/FreeExtrudeDlg.pas' {FreeExtrudeDialog},
FreeControlPointFrm in 'Forms/FreeControlPointFrm.pas' {FreeControlPointForm},
FreeProjectSettingsDlg in 'Forms/FreeProjectSettingsDlg.pas' {FREEProjectSettingsDialog},
FreeHydrostaticsDlg in 'Forms/FreeHydrostaticsDlg.pas' {FreeHydrostaticsDialog},
FreeRotateDlg in 'Forms/FreeRotateDlg.pas' {FreeRotateDialog},
FreeHydrostaticsFrm in 'Forms/FreeHydrostaticsFrm.pas' {FreeHydrostaticsForm},
FreePreferencesDlg in 'Forms/FreePreferencesDlg.pas' {FreePreferencesDialog},
FreeExpanedPlatesDlg in 'Forms/FreeExpanedPlatesDlg.pas' {FreeExpanedplatesDialog},
FreeLinesplanFrme in 'Forms/FreeLinesplanFrme.pas' {FreeLinesplanFrame: TFrame},
FreeLinesplanFrm in 'Forms/FreeLinesplanFrm.pas' {FreeLinesplanForm},
FreeSaveImageDlg in 'Forms/FreeSaveImageDlg.pas' {SaveImageDialog},
FreeInsertPlaneDlg in 'Forms/FreeInsertPlaneDlg.pas' {FreeInsertPlaneDialog},
FreeMichletOutputDlg in 'Forms/FreeMichletOutputDlg.pas' {FreeMichletOutputDialog},
FreeAddMassOutputDlg in 'Forms/FreeAddMassOutputDlg.pas' {FreeAddMassOutputDialog},
FreeResistance_KaperDlg in 'Forms/FreeResistance_KaperDlg.pas' {FreeResistance_Kaper},
FreeResistance_DelftDlg in 'Forms/FreeResistance_DelftDlg.pas' {FreeResistance_Delft},
FreeResistance_HoltrDlg in 'Forms/FreeResistance_HoltrDlg.pas' {FreeResistance_Holtr},
FreeResistance_HollenDlg in 'Forms/FreeResistance_HollenDlg.pas' {FreeResistance_Hollen},
FreeResistance_OortmerDlg in 'Forms/FreeResistance_OortmerDlg.pas' {FreeResistance_Oortmer},
FreeResistance_FungLeibDlg in 'Forms/FreeResistance_FungLeibDlg.pas' {FreeResistance_FungLeib},
FreeResistance_OSTDlg in 'Forms/FreeResistance_OSTDlg.pas' {FreeResistance_OST},
FreeResistance_RBHSDlg in 'Forms/FreeResistance_RBHSDlg.pas' {FreeResistance_RBHS},
FreePropeller_Task1Dlg in 'Forms/FreePropeller_Task1Dlg.pas' {FreePropeller_Task1Dlg},
FreePropeller_Task2Dlg in 'Forms/FreePropeller_Task2Dlg.pas' {FreePropeller_Task2Dlg},
FreePropeller_Task3Dlg in 'Forms/FreePropeller_Task3Dlg.pas' {FreePropeller_Task3Dlg},
FreeHydrodyn_Task1Dlg in 'Forms/FreeHydrodyn_Task1Dlg.pas' {FreeHydrodyn_Task1Dlg},
// FreeHydrodyn_Task2Dlg in 'Forms/FreeHydrodyn_Task2Dlg.pas' {FreeHydrodyn_Task2Dlg},
// FreeHydrodyn_Task3Dlg in 'Forms/FreeHydrodyn_Task3Dlg.pas' {FreeHydrodyn_Task3Dlg},
// FreeHydrodyn_Task4Dlg in 'Forms/FreeHydrodyn_Task4Dlg.pas' {FreeHydrodyn_Task4Dlg},
FreeMirrorPlaneDlg in 'Forms/FreeMirrorPlaneDlg.pas' {FreeMirrorPlaneDialog},
FreeSelectLayersDlg in 'Forms/FreeSelectLayersDlg.pas' {FreeSelectLayersDialog},
FreeKeelWizardDlg in 'Forms/FreeKeelWizardDlg.pas' {FreeKeelWizardDialog},
FreeNumInput in 'Units/FreeNumInput.pas',
VRMLUnit in 'Units/VRMLUnit.pas',
FreeLackenbyDlg in 'Forms/FreeLackenbyDlg.pas' {FreeLackenbyDialog},
FreeIGESUnit in 'Units/FreeIGESUnit.pas',
FreeIntersectLayerDlg in 'Forms/FreeIntersectLayerDlg.pas' {FreeIntersectLayerDialog},
FreeUndoHistoryDlg in 'Forms/FreeUndoHistoryDlg.pas' {FreeUndoHistoryDialog},
FreeHydrostaticsResultsDlg in 'Forms/FreeHydrostaticsResultsDlg.pas' {FreeHydrostaticsResultsDialog},
FreeEmptyModelChooserDlg {FreeBackgroundBlendDialog},
FreeCylinderDlg in 'Forms/FreeCylinderDlg.pas' {FreeCylinderDialog},
FreeStringsUnit in 'Units/FreeStringsUnit.pas',
Free2DDXFExportDlg in 'Forms/Free2DDXFExportDlg.pas' {DXFExport2DDialog},
FreeCrosscurvesDlg in 'Forms/FreeCrosscurvesDlg.pas' {FreeCrosscurvesDialog},
FreeAboutDlg in 'Forms/FreeAboutDlg.pas' {FreeAboutDlg},
LightDialog in 'Forms/lightdialog.pas',
MDIPanel
{$endif exclude}
;
{$R *.res}
var ParametersHelp, ShowSplash, InDebugger : boolean; sOpenFile:string='';
resourcestring
usageLine01 = 'Usage: FreeShip [parameter]* [model]';
usageLine02 = 'Where parameter is:';
usageLine03 = '--help : this screen';
usageLine04 = '--log-error : log level is Error. Only Error messages logged';
usageLine05 = '--log-warning : log level is Warning. Only Error and Warning messages logged';
usageLine06 = '--log-info : log level is Info. Error, Warning and Info messages logged';
usageLine07 = '--log-debug : log level is Debug. All messages logged.';
usageLine08 = '--log-file=<logfile> : filename of the log file';
usageLine09 = '--nosplash-I-ACCEPT-GPLv3-TERMS-AND-CONDITIONS : turn off splash screen.';
usageLine10 = '--debug : for development, use only when run in debugger';
usageLine11 = 'model : model file .ftm or .fbm';
procedure PrintParametersHelp;
var S: string; p: integer;
begin
Logger.Info(usageLine01);
Logger.Info(usageLine02);
Logger.Info(usageLine03);
Logger.Info(usageLine04);
Logger.Info(usageLine05);
Logger.Info(usageLine06);
Logger.Info(usageLine07);
Logger.Info(usageLine08);
Logger.Info(usageLine09);
Logger.Info(usageLine10);
Logger.Info(usageLine11);
ShowMessage( usageLine01+#10
+usageLine02+#10
+usageLine03+#10
+usageLine04+#10
+usageLine05+#10
+usageLine06+#10
+usageLine07+#10
+usageLine08+#10
+usageLine09+#10
+usageLine10+#10
+usageLine11 );
end;
procedure InitByParameters;
var S: string; p: integer;
begin
for p:=1 to ParamCount do
begin
S := ParamStr(p);
if S = '--nosplash-I-ACCEPT-GPLv3-TERMS-AND-CONDITIONS' then ShowSplash:=False
else if S = '--help' then ParametersHelp:=True
else if S = '--debug' then InDebugger:=True
else if S = '--log-info' then Logger.LogLevel:=LOG_INFO
else if S = '--log-error' then Logger.LogLevel:=LOG_ERROR
else if S = '--log-warning' then Logger.LogLevel:=LOG_WARNING
else if S = '--log-debug' then Logger.LogLevel:=LOG_DEBUG
else if UTF8LeftStr(S,11) = '--log-file=' then
Logger.ParamForLogFileName:='--log-file='
else if (lowerCase(UTF8RightStr(S,4)) = '.ftm')
or(lowerCase(UTF8RightStr(S,4)) = '.fbm')
then
sOpenFile:=S;
end;
end;
{
procedure CatchUnhandledException(Obj: TObject; Addr: Pointer; FrameCount: Longint; Frames: PPointer);
var
Message: string;
i: LongInt;
hstdout: ^Text;
begin
hstdout := @stdout;
Writeln(hstdout^, 'An unhandled exception occurred at $', HexStr(PtrUInt(Addr), SizeOf(PtrUInt) * 2), ' :');
if Obj is Exception then
begin
Message := Exception(Obj).ClassName + ' : ' + Exception(Obj).Message;
Writeln(hstdout^, Message);
DumpExceptionCallStack(Exception(Obj));
end
else
Writeln(hstdout^, 'Exception object ', Obj.ClassName, ' is not of class Exception.');
Writeln(hstdout^, BackTraceStrFunc(Addr));
if (FrameCount > 0) then
begin
for i := 0 to FrameCount - 1 do
Writeln(hstdout^, BackTraceStrFunc(Frames[i]));
end;
Writeln(hstdout^,'');
end;
}
{$ifdef Windows}
//const INSTSCRIPT_EXT='cmd';
{$else}
//const INSTSCRIPT_EXT='sh';
{$endif}
resourcestring InstallMeMessage='Configuration issue.'+#10
+'Scenario A: You probably run FreeShip from installation directory.'+#10
+'FreeShip is not installed.'+#10
+'It will work but it may experience issues with finding various files and directories.'+#10
+'Please exit and run install-FreeShip.sh'+#10
+#10
+'Scenario B: You probably have previously installed FreeShip in user scope and just re-installed it in machine scope, or vice versa.'+#10
+'Please enter menu File/Preferences, Directories tab, and click Reset button'+#10
;
procedure checkInstallation;
//var MsgForm:TForm; Lbl:TLabel;
begin
with Mainform.Freeship.Preferences do
begin
if (not DirectoryExistsUTF8(ManualsDirectory))
//or (not DirectoryExistsUTF8(ToolIconDirectory))
//or (not DirectoryExistsUTF8(ExecDirectory))
or (not DirectoryExistsUTF8(GlobalOpenDirectory))
or (not DirectoryExistsUTF8(GlobalImportDirectory))
//or True
then
begin
logger.Error('GlobalOpenDirectory: '+GlobalOpenDirectory);
logger.Error('GlobalImportDirectory: '+GlobalImportDirectory);
logger.Error('ManualsDirectory: '+ManualsDirectory);
//logger.Error('ToolIconDirectory: '+ToolIconDirectory);
//logger.Error('ExecDirectory: '+ExecDirectory);
MessageDlg('Warning', InstallMeMessage, mtWarning,[mbClose],0)
end;
end;
end;
procedure createUserDirectories;
begin
with Mainform.Freeship.Preferences do
begin
if (not DirectoryExistsUTF8(SaveDirectory))
then ForceDirectoriesUTF8(SaveDirectory);
if (not DirectoryExistsUTF8(ImportDirectory))
then ForceDirectoriesUTF8(ImportDirectory);
if (not DirectoryExistsUTF8(ExportDirectory))
then ForceDirectoriesUTF8(ExportDirectory);
if (not DirectoryExistsUTF8(SaveDirectory))
then ForceDirectoriesUTF8(SaveDirectory);
if (not DirectoryExistsUTF8(TempDirectory))
then ForceDirectoriesUTF8(TempDirectory);
end;
end;
var ver:string;
begin
{$IFDEF MEMCHECK}
// Initialize memcheck, for memory-leak tracking
MemChk;
{$ENDIF}
try
Logger.LogLevel:=LOG_INFO;
Logger.Info('FreeShip in Lazarus');
Logger.Info('Compiled at '+COMPILE_DATE+' '+COMPILE_TIME);
Logger.Info('Compiler version: '+FPCVERSION);
Logger.Info('Target CPU: '+TARGET_CPU);
Logger.Info('Target OS: '+TARGET_OS);
ver := ResourceVersionInfo;
Logger.Info('FreeShip Product version: '+FREESHIP_VERSION);
Logger.Info('FreeShip Program version: '+ver);
Logger.Info('Last Git Change Revision: '+IntToStr(GITVERSION_REVISION));
Logger.Info('Last Git Commit: '+GITCOMMIT);
Logger.LogLevel:=LOG_ERROR;
ParametersHelp:=false;
ShowSplash:=true;
InDebugger:=false;
sOpenFile := '';
InitByParameters;
RequireDerivedFormResource:=True; // new
FormatSettings.DecimalSeparator:='.';
Application.Scaled:=True;
Application.Initialize;
if ParametersHelp then
begin
Logger.LogLevel:=LOG_INFO;
PrintParametersHelp;
exit;
end;
{
FreeSplashWindow:=TFreeSplashWindow.Create(Application);
if ShowSplash then
begin
//ShowTranslatedValues(FreeSplashWindow);
if InDebugger then
begin
//FreeSplashWindow.FormStyle:=fsNormal;
//FreeSplashWindow.BorderStyle:=bsSizeable;
end;
//FreeSplashWindow.ShowOnTop;
FreeSplashWindow.ShowModal;
Application.ProcessMessages;
Application.ProcessMessages;
//sleep(SPLASH_TIME);
//TODO: call somewhere FreeSplashWindow.Free;
end;
Application.CreateForm(TMainForm, MainForm);
checkInstallation;
MainForm.SplashWindow:=FreeSplashWindow;
FreeSplashWindow.Position:=poMainFormCenter;
Application.ProcessMessages;
}
Main.GShowSplash := ShowSplash;
Application.CreateForm(TMainForm, MainForm);
checkInstallation;
createUserDirectories;
//Application.CreateForm(TFreeCrosscurvesDialog, FreeCrosscurvesDialog);
{$IFNDEF CREATE_TRANSLATION}
//LoadLanguage(Mainform.Freeship.Preferences.Language,
// Mainform.Freeship.Preferences.LanguageFile);
SetDefaultLang(LanguageCode(
Mainform.Freeship.Preferences.Language),
Mainform.Freeship.Preferences.LanguagesDirectory,
'FreeShip', True);
SetUserStringsLang;
{$ENDIF}
//ShowTranslatedValues(Mainform);
Mainform.FFileName:=sOpenFile;
//if sOpenFile <> ''
//then MainForm.LoadNamedFile(sOpenFile);
//Application.CreateForm(TFreeKeelWizardDialog, FreeKeelWizardDialog);
Application.OnActivate := MainForm.OnActivate;
{$IFDEF CREATE_TRANSLATION}
// Create a translation of all the forms and stringvalues in the project
FreeExpanedplatesDialog:=TFreeExpanedplatesDialog.Create(Application);
FreeExtrudeDialog:=TFreeExtrudeDialog.Create(Application);
FreeHullWindow:=TFreeHullWindow.Create(Application);
FreeHydrostaticsDialog:=TFreeHydrostaticsDialog.Create(Application);
FreeHydrostaticsForm:=TFreeHydrostaticsForm.Create(Application);
FreeControlPointForm:=TFreeControlPointForm.Create(Application);
FreeHydrostaticsResultsDialog:=TFreeHydrostaticsResultsDialog.Create(Application);
FreeInsertPlaneDialog:=TFreeInsertPlaneDialog.Create(Application);
FreeIntersectionDialog:=TFreeIntersectionDialog.Create(Application);
FreeIntersectLayerDialog:=TFreeIntersectLayerDialog.Create(Application);
FreeLackenbyDialog:=TFreeLackenbyDialog.Create(Application);
FreeLayerDialog:=TFreeLayerDialog.Create(Application);
FreeLinesplanFrame:=TFreeLinesplanFrame.Create(Application);
FreeMichletOutputDialog:=TFreeMichletOutputDialog.Create(Application);
// FreeAddMassOutputDialog:=TFreeAddMassOutputDialog.Create(Application);
FreeMirrorPlaneDialog:=TFreeMirrorPlaneDialog.Create(Application);
FreeNewModelDialog:=TFreeNewModelDialog.Create(Application);
FreePreferencesDialog:=TFreePreferencesDialog.Create(Application);
FREEProjectSettingsDialog:=TFREEProjectSettingsDialog.Create(Application);
FreeResistance_Delft:=TFreeResistance_Delft.Create(Application);
FreeResistance_Kaper:=TFreeResistance_Kaper.Create(Application);
FreeResistance_Holtr:=TFreeResistance_Holtr.Create(Application);
FreeResistance_Hollen:=TFreeResistance_Hollen.Create(Application);
FreeResistance_Oortmer:=TFreeResistance_Oortmer.Create(Application);
FreeResistance_FungLeib:=TFreeResistance_FungLeib.Create(Application);
FreePropeller_Task1:=TFreePropeller_Task1.Create(Application);
FreePropeller_Task2:=TFreePropeller_Task2.Create(Application);
FreePropeller_Task3:=TFreePropeller_Task3.Create(Application);
FreeHydrodyn_Task1:=TFreeHydrodyn_Task1.Create(Application);
FreeHydrodyn_Task2:=TFreeHydrodyn_Task2.Create(Application);
FreeHydrodyn_Task3:=TFreeHydrodyn_Task3.Create(Application);
FreeHydrodyn_Task4:=TFreeHydrodyn_Task4.Create(Application);
FreeRotateDialog:=TFreeRotateDialog.Create(Application);
FreeRotateMDialog:=TFreeRotateMDialog.Create(Application);
FreeSelectLayersDialog:=TFreeSelectLayersDialog.Create(Application);
FreeUndoHistoryDialog:=TFreeUndoHistoryDialog.Create(Application);
SaveImageDialog:=TSaveImageDialog.Create(Application);
FreeBackgroundBlendDialog:=TFreeBackgroundBlendDialog.Create(Application);
FreeCylinderDialog:=TFreeCylinderDialog.Create(Application);
DXFExport2DDialog:=TDXFExport2DDialog.Create(Application);
FreeLinesplanForm:=TFreeLinesplanForm.Create(Application);
FreeCrosscurvesDialog:=TFreeCrosscurvesDialog.create(Application);
CreateLanguageFile;
FreeControlPointForm.Free;
FreeExpanedplatesDialog.Free;
FreeExtrudeDialog.Free;
FreeHullWindow.Free;
FreeHydrostaticsDialog.Free;
FreeHydrostaticsForm.Free;
FreeHydrostaticsResultsDialog.Free;
FreeInsertPlaneDialog.Free;
FreeIntersectionDialog.Free;
FreeIntersectLayerDialog.Free;
FreeLackenbyDialog.Free;
FreeLayerDialog.Free;
FreeLinesplanFrame.Free;
FreeMichletOutputDialog.Free;
// FreeAddMassOutputDialog.Free;
FreeMirrorPlaneDialog.Free;
FreeNewModelDialog.Free;
FreePreferencesDialog.Free;
FREEProjectSettingsDialog.Free;
FreeResistance_Kaper.Free;
FreeResistance_Delft.Free;
FreeResistance_Holtr.Free;
FreeResistance_Hollen.Free;
FreeResistance_Oortmer.Free;
FreeResistance_FungLeib.Free;
FreeRotateDialog.Free;
FreeSelectLayersDialog.Free;
FreeUndoHistoryDialog.Free;
SaveImageDialog.Free;
FreeBackgroundBlendDialog.Free;
FreeCylinderDialog.Free;
DXFExport2DDialog.Free;
FreeLinesplanForm.Free;
FreeCrosscurvesDialog.Free;
{$ENDIF}
Application.Run;
except
on E: Exception do
logger.ShowExceptionCallStack(E);
end;
end.