-
Notifications
You must be signed in to change notification settings - Fork 52
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
we can not compile the CEF3 package in Windows 10 FPC version 3.3.1 (SVN 59585M) - FPC stack overflow #73
Comments
This is still an issue. Following this guide: https://lazplanet.blogspot.com/2015/09/create-web-browser-in-3-minutes-using.html tried reducing array size -2 in cef3types.pas "Somebody should add a PCefRectArray = ^TCefRectArray type definition and use that instead of abusing the stack. Maybe I'll stick with gecko. Any other workaround suggestions? |
Hi I reported the problem originally and when it did not get fixed I moved to using salvadordf/CEF4Delphi
|
|
|
| | |
|
|
|
| |
salvadordf/CEF4Delphi
CEF4Delphi is an open source project to embed Chromium-based browsers in applications made with Delphi or Lazaru...
|
|
|
This has worked fine for me. (I am using it with Lazarus)
On Saturday, 13 February 2021, 21:26:42 GMT, alkinnon <[email protected]> wrote:
This is still an issue.
Following this guide: https://lazplanet.blogspot.com/2015/09/create-web-browser-in-3-minutes-using.html
used tortoisesvn to download.
tried reducing array size -2 in cef3types.pas
TCefRectArray = array[0..(High(Integer) div SizeOf(TCefRect)) - 2] of TCefRect;
Then tried compile again, didnt fix for me.
"Somebody should add a PCefRectArray = ^TCefRectArray type definition and use that instead of abusing the stack.
EDIT : So no FPC issue, fix it in the upstream." - I wish I understood this :(
Maybe I'll stick with gecko.
Any other workaround suggestions?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Gave up and had no issues installing CEF4Delphi. I'll get busy reading up how to implement, many thanks Steve. |
I reported this to FPC bug team and they said..............................
The compiler produces an error: cef3ref.pas(1577,1) Error: Local variables size exceeds supported limit."That is stack size.
It works ok reducing array size -2 in cef3types.pasTCefRectArray = array[0..(High(Integer) div SizeOf(TCefRect)) - 2] of TCefRect;
Somebody should add a PCefRectArray = ^TCefRectArray type definition and use that instead of abusing the stack.EDIT : So no FPC issue, fix it in the upstream.
The details to reproduce the problem are...........................................
Use fpcupdeluxe (i386-win32) to install Lazarus version 2.1.0, with FPC version 3.3.1 (SVN 59585M)
Download FPCEF3 (version 3.3029.1) and try to install in Lazarus by selecting cef3.lpk in the "Package/Open Package File" menu then select compile......
The compile fails with error: cef3ref.pas(1577,1) Error: Local variables size exceeds supported limit.
The code snippet this error points to is .......
procedure TCefBrowserHostRef.ImeSetComposition(const Atext:ustring; underlinesCount: TSize; underlines: TCefCompositionUnderlineArray; const
replacementRange, selectionRange: TCefRange);
Var
t: TCefString;
(line 1577:) begin
t := CefString(Atext);
PCefBrowserHost(fData)^.ime_set_composition(fData, @t,underlinesCount,@underlines,@replacementRange, @selectionRange);
end;
The text was updated successfully, but these errors were encountered: