I created a new test program and it works normally. The web page displays normally.
however
My problem is, in my problematic project.
Code: Select all
GlobalCEFApp := TCefApplication.Create;
if GlobalCEFApp. StartMainProcess then
begin
Application.Initialize;
Application. MainFormOnTaskbar := True;
Application. CreateForm(TFormMain, FormMain);
Application. CreateForm(TFormShowTips, FormShowTips);
Application. CreateForm(TDM, DM);
Application.Run;
end;
procedure TFrameReport. Button1Click(Sender: TObject);
begin
//Fast exit of chorme process
Chromium1.CreateBrowser(CEFWindowParent1,'');
Chromium1.LoadURL('www.google.com');
end;
The chorme process exited in a flash. Can you give me some advice?