salvadordf / CEF4Delphi

CEF4Delphi is an open source project to embed Chromium-based browsers in applications made with Delphi or Lazarus/FPC for Windows, Linux and MacOS.
https://www.briskbard.com/forum/
Other
1.21k stars 372 forks source link

The PopupBrowser demo for Lazarus in Windows crashes at shutdown with CEF 128 #529

Open salvadordf opened 2 months ago

salvadordf commented 2 months ago

PopupBrowser uses a windowed browser for the main form and a OSR browser for the popup windows. Both use the "Alloy style" but sometimes it crashes when you close the popup window.

The first tests show that this issue only affects the Lazarus demo and not the Delphi demo but testing that demo in a different computer may show a different result.

A really bad workaround is to add a sleep call of 1 second before closing the popup window in the TChromiumCore.OnBeforeClose event because there seems to be a timing issue.

mytvdat commented 2 months ago

CEF 109 for windows7 crashes at shutdown too

mytvdat commented 2 months ago

I don't think Cef4Delphi can run properly at all, it's not as good as WebView4Delphi.