hgourvest/dcef3

Trying to show the developer tools in a 64-bit process leads to a crash

Closed this issue · 0 comments

Hello,

Trying to launch developer tools in an external window using TChromium's method called ShowDevTools leads to a crash when running a 64-bit build. I experimented with the guiclient demo and it seems the error comes from libcef.dll. However, using the TChromiumDevTools component as already implemented in the demo works fine even in 64-bit.

I'm using the latest version of dcef3 (branch 2704) on Windows 7 64-bit.

To easily see the issue change the following procedure in the guiclient demo to be:

procedure TMainForm.actDevToolExecute(Sender: TObject);
begin
  if actDevTool.Checked then
  begin
//    DevTools.Visible := True;
//    Splitter.Visible := True;
//    DevTools.ShowDevTools(crm.Browser);
    crm.ShowDevTools();
  end else
  begin
    DevTools.CloseDevTools(crm.Browser);
    Splitter.Visible := False;
    DevTools.Visible := False;
  end;
end;

Then change the build configuration to 64-bit and run the application. Now click the "Show DevTools" menu item from the "Test" menu to see the crash.