1 Star 0 Fork 25

Lyon/php_desktop

forked from lobtao/php_desktop 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
niu_new.dpr 1.45 KB
一键复制 编辑 原始数据 按行查看 历史
lobtao 提交于 2018-09-27 13:02 . 增加php.exe进程守护
program niu_new;
{$I cef.inc}
uses
Forms,
Windows,
SysUtils,
uCEFApplication,
uCEFConstants,
ufrmMain in 'ufrmMain.pas' { frmMain },
unConfig in 'unConfig.pas',
unRunOne in 'unRunOne.pas',
ufrmSplash in 'ufrmSplash.pas' { frmSplash },
ufrmModal in 'ufrmModal.pas' { frmModal },
uframeChrome in 'uframeChrome.pas' { frameChrome: TFrame},
unV8Extension in 'unV8Extension.pas',
unMoudle in 'unMoudle.pas' { dbMoudle: TDataModule},
unChromeMessage in 'unChromeMessage.pas',
unCmdCli in 'unCmdCli.pas',
unCEF in 'unCEF.pas';
{$R *.res}
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
{$SETPEFLAGS IMAGE_FILE_LARGE_ADDRESS_AWARE}
begin
{$IF CompilerVersion> 18}
ReportMemoryLeaksOnShutdown := True;
{$IFEND}
CreateGlobalCEFApp; // 必须放在主窗口单元里,否则有内存泄漏
try
if GlobalCEFApp.StartMainProcess then
begin
Application.Initialize;
if unRunOne.AppHasRun(Application.Handle,
'{89304366-F0B6-432A-870B-3FAB2B7C5514}') then
begin
Exit;
end;
{$IFDEF DELPHI11_UP}
Application.MainFormOnTaskBar := False; // 主窗口激活,会导致show窗口,透明阴影居顶
{$ENDIF}
Application.Title := FCaption;
Application.CreateForm(TdbMoudle, dbMoudle);
Application.CreateForm(TfrmMain, frmMain);
Application.Run;
end;
finally // 必须finally里释放,防止unRunOne.AppHasRun退出后不释放子进程
DestroyGlobalCEFApp;
end;
end.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/LyonH/php_desktop.git
git@gitee.com:LyonH/php_desktop.git
LyonH
php_desktop
php_desktop
master

搜索帮助