-
Notifications
You must be signed in to change notification settings - Fork 1
/
load.pas
65 lines (52 loc) · 1.15 KB
/
load.pas
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
unit load;
interface
uses
System.UITypes,
FMX.Forms,
FireDAC.Phys.SQLite,
FireDAC.Stan.ExprFuncs,
FireDAC.Phys.SQLiteDef,
System.Classes,
FireDAC.Stan.Intf,
FireDAC.Phys,
FMX.Types,
FMX.Controls;
type
TLoading = class(TForm)
SQLite_DriverLink: TFDPhysSQLiteDriverLink;
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Loading: TLoading;
implementation
{$R *.fmx}
uses
uLoad_AllTypes,
uwindows,
uLoad_SetAll,
uLoad;
procedure TLoading.FormClose(Sender: TObject; var Action: TCloseAction);
begin
ReportMemoryLeaksOnShutdown := False;
end;
procedure TLoading.FormCreate(Sender: TObject);
var
iRetCode: Integer;
begin
Default_Load := False;
uLoad.Prepare;
end;
end.
{if CPUID.CpuType <> CPU_TYPE_INTEL then
SetEnvironmentVar('KMP_AFFINITY', 'disabled');
if kmp then
iRetCode = _putenv( "KMP_AFFINITY=disabled" );
if( iRetCode == 0 )
printf( "KMP_AFFINITY=%sn", getenv( "KMP_AFFINITY" ) )
else
printf( "Error: Failed to Set Environment Variable KMP_AFFINITYn" ); }