Risks of including CEF4Delphi in an existing project
Posted: Tue Nov 16, 2021 7:23 am
Hi.
I am a new forum user and also I just started using CEF4Delphi.
The reason why I started adopting it is that I would like to show modern html5 web pages (that TWebBrowser cannot handle) in my win32 application.
Basically what I plan to do is to have a frame that contains the browser window and to use this frame in several parts of the application (basically in page control's tabs, in modal windows, ...). I designed a framework to create the web pages I need and I use CEF4Delphi to display them in my legacy application.
My application is a quite old win32 client/server legacy application (you can say it is a kind of ERP), with this new approach I plan to make customization simpler for my users: before all UI was hardcoded, now the browser based UI parts somehow are customization. So basically my users will be able to see "New UI parts" that are provided by a custom web application and the Delphi exe, through CEF4D, is able to "render those pages".
I wrote this to give you some context.
Moreover, my app uses many third-party components, including DevExpress, ReportBuilder, SDAC Devart, and many others. As a consequence, the exe size without CEF4D is about 150MB.
With CEF4 the size is almost 250MB.
Somehow it works: I am able to see web pages in my application, even if I am still experimenting to see how CEF4Delphi works and I am far from the desired result, but I hope to succeed in the end.
I am a bit worried about the stability so I would like to ask you about how safe it is to include CEF4D in an app like the one I described. By safe I mean safe from the exe stability point of view and overall convenience.
I noticed some out-of-memory errors when the users were running my exe for hours, initially, I was calling CreateGlobalCEFApp at the app initialization, now to try to understand those errors I postponed the call to when I first need to display a web page in my app. This seems to have improved the situation, but I am far from being 100% sure.
Anyway, my goal here is not to discuss each small problem I encounter, but just to have an opinion from an expert about using CEF4D in my context: is it safe? Are there some rules? Which are the best practices?
Thanks a lot.
I am a new forum user and also I just started using CEF4Delphi.
The reason why I started adopting it is that I would like to show modern html5 web pages (that TWebBrowser cannot handle) in my win32 application.
Basically what I plan to do is to have a frame that contains the browser window and to use this frame in several parts of the application (basically in page control's tabs, in modal windows, ...). I designed a framework to create the web pages I need and I use CEF4Delphi to display them in my legacy application.
My application is a quite old win32 client/server legacy application (you can say it is a kind of ERP), with this new approach I plan to make customization simpler for my users: before all UI was hardcoded, now the browser based UI parts somehow are customization. So basically my users will be able to see "New UI parts" that are provided by a custom web application and the Delphi exe, through CEF4D, is able to "render those pages".
I wrote this to give you some context.
Moreover, my app uses many third-party components, including DevExpress, ReportBuilder, SDAC Devart, and many others. As a consequence, the exe size without CEF4D is about 150MB.
With CEF4 the size is almost 250MB.
Somehow it works: I am able to see web pages in my application, even if I am still experimenting to see how CEF4Delphi works and I am far from the desired result, but I hope to succeed in the end.
I am a bit worried about the stability so I would like to ask you about how safe it is to include CEF4D in an app like the one I described. By safe I mean safe from the exe stability point of view and overall convenience.
I noticed some out-of-memory errors when the users were running my exe for hours, initially, I was calling CreateGlobalCEFApp at the app initialization, now to try to understand those errors I postponed the call to when I first need to display a web page in my app. This seems to have improved the situation, but I am far from being 100% sure.
Anyway, my goal here is not to discuss each small problem I encounter, but just to have an opinion from an expert about using CEF4D in my context: is it safe? Are there some rules? Which are the best practices?
Thanks a lot.