Page 1 of 2

Update to CEF 3.3538.1848.g1d1fe01

Posted: Fri Oct 26, 2018 8:42 am
by salvadordf
Hi,

I just uploaded the new version of CEF4Delphi. It uses CEF 3.3538.1848.g1d1fe01.

This is what's new in this version :
  • Chromium 70.0.3538.77
  • Added the ConsoleBrowser demo that uses a console application and a DLL to show a web browser in OSR mode.
  • Added some memory usage information properties to GlobalCEFApp :
    • GlobalCEFApp.UsedMemory : Amount of memory used by all the processes in the application.
    • GlobalCEFApp.TotalSystemMemory : Amount of actual physical memory in the system.
    • GlobalCEFApp.AvailableSystemMemory : Amount of physical memory currently available in the system.
    • GlobalCEFApp.SystemMemoryLoad : Percentage of physical memory that is in use.
The CEF3 binaries are : I also created a "release" in the CEF4Delphi project with the last version that supported the previous CEF 3 branch.
In case you have any problem, you can always go back to that release.

Re: Update to CEF 3.3538.1848.g1d1fe01

Posted: Mon Oct 29, 2018 8:15 am
by dilfich
Hi, First time decided to try.. and failed. Apparently this is obsolete? (demo FMXExternalPumpBrowser)

[dcc32 Error] uFMXApplicationService.pas(140): E2003 Undeclared identifier: 'Running'

Code: Select all

  Result := OldFMXApplicationService.Running;

Re: Update to CEF 3.3538.1848.g1d1fe01

Posted: Mon Oct 29, 2018 8:29 am
by salvadordf
IFMXApplicationService has new features in the latest Delphi versions and the "running" procedure is one of them.
If your IFMXApplicationService doesn't have a "running" procedure, delete it from the demo or try the latest Delphi Community Edition available for free here :
https://www.embarcadero.com/products/de ... e-download

Re: Update to CEF 3.3538.1848.g1d1fe01

Posted: Mon Oct 29, 2018 9:01 am
by dilfich
delphi 10.1 berlin upd2 So old.. :(

Re: Update to CEF 3.3538.1848.g1d1fe01

Posted: Mon Oct 29, 2018 9:30 am
by dilfich
In the program directory is created empty folder blob_storage, it is possible as that to disconnect?

Re: Update to CEF 3.3538.1848.g1d1fe01

Posted: Mon Oct 29, 2018 9:46 am
by salvadordf

Re: Update to CEF 3.3538.1848.g1d1fe01

Posted: Mon Oct 29, 2018 9:55 am
by dilfich
This was not exactly 3.3325.1749 (65 chrome)

Re: Update to CEF 3.3538.1848.g1d1fe01

Posted: Mon Oct 29, 2018 10:11 am
by salvadordf
The status of that CEF3 issue is still "open" which means that the latest CEF3 branch still creates a "blob_storage" directory.
We will have to wait until they fix it.

Re: Update to CEF 3.3538.1848.g1d1fe01

Posted: Mon Oct 29, 2018 10:46 am
by dilfich
GlobalCEFApp.UsedMemory
Incorrectly displays if the application has more than 1 instance of the browser.
I'm comparing with task Manager, or why such a significant difference?

Re: Update to CEF 3.3538.1848.g1d1fe01

Posted: Mon Oct 29, 2018 11:04 am
by salvadordf
I used the proposed answer to get the memory used by a program given by Jim McKeeth here :
https://stackoverflow.com/a/442278

This method uses the GetProcessMemoryInfo Windows API function to read the WorkingSetSize member from PROCESS_MEMORY_COUNTERS.

For more information :
https://docs.microsoft.com/en-us/window ... memoryinfo
https://docs.microsoft.com/en-us/window ... y_counters

According to this link the Task Manager doesn't use GetProcessMemoryInfo :
https://stackoverflow.com/questions/429 ... sk-manager

It uses ZwQueryInformationProcess and it shows the "PrivateWorkingSet" value instead of the total working set.