Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ToolBoxBorwser2 and TinyBrowser demos crash creating the window in 32 bits #278

Open
salvadordf opened this issue May 5, 2020 · 1 comment

Comments

@salvadordf
Copy link
Owner

There's an issue in CEF4Delphi that causes the ToolBoxBorwser2 demo to crash when the user clicks on the "Open" button to create the child window.

This demo works correctly in 64 bits.

It seems to be an incorrect declaration in CEF4Delphi of some of the new "Views Framework" components that only affects 32 bits applications.

The crash occurs right before the TCEFViewComponent.OnGetPreferredSize event because it tries to cast an incorrect pointer as a TCefViewDelegateOwn.

if (TempObject <> nil) and (TempObject is TCefViewDelegateOwn) then

@salvadordf salvadordf added the bug label May 5, 2020
@salvadordf salvadordf changed the title ToolBoxBorwser2 demo crashes creating the window in 32 bits ToolBoxBorwser2 and TinyBrowser demos crash creating the window in 32 bits May 16, 2020
salvadordf added a commit that referenced this issue May 16, 2021
Added TinyBrowser demo for Linux.
Added AppHelperRenamer tool for MacOS.
Disabled 3 event in TCefViewDelegateRef in 32 bits as a workaround for the issue #278
@salvadordf
Copy link
Owner Author

This stackoverflow case might be relevant to this issue because returning a TCefSize record in TCefViewDelegate.get_preferred_size seems to be causing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant