2020-05-05 18:10:33 +02:00
|
|
|
program ToolBoxBrowser2;
|
|
|
|
|
|
|
|
{$MODE Delphi}
|
|
|
|
|
|
|
|
uses
|
|
|
|
Windows,
|
|
|
|
Forms,
|
|
|
|
LCLIntf, LCLType, LMessages, Interfaces,
|
|
|
|
uCEFApplication,
|
|
|
|
uMainForm in 'uMainForm.pas' {MainForm};
|
|
|
|
|
2025-05-20 19:35:57 +02:00
|
|
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
|
|
{$IFDEF WIN32}{$SetPEFlags $20}{$ENDIF}
|
2020-05-05 18:10:33 +02:00
|
|
|
|
2024-05-02 12:31:19 +02:00
|
|
|
{$R *.res}
|
|
|
|
|
2020-05-05 18:10:33 +02:00
|
|
|
begin
|
|
|
|
CreateGlobalCEFApp;
|
|
|
|
|
|
|
|
if GlobalCEFApp.StartMainProcess then
|
|
|
|
begin
|
|
|
|
Application.Initialize;
|
|
|
|
Application.MainFormOnTaskbar := True;
|
|
|
|
Application.CreateForm(TMainForm, MainForm);
|
|
|
|
Application.Run;
|
|
|
|
end;
|
|
|
|
|
|
|
|
DestroyGlobalCEFApp;
|
|
|
|
end.
|