Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Update to CEF 3.3538.1848.g1d1fe01

User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Update to CEF 3.3538.1848.g1d1fe01

Post 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.
dilfich
Posts: 368
Joined: Thu Nov 30, 2017 1:17 am

Re: Update to CEF 3.3538.1848.g1d1fe01

Post 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;
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Update to CEF 3.3538.1848.g1d1fe01

Post 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
dilfich
Posts: 368
Joined: Thu Nov 30, 2017 1:17 am

Re: Update to CEF 3.3538.1848.g1d1fe01

Post by dilfich »

delphi 10.1 berlin upd2 So old.. :(
dilfich
Posts: 368
Joined: Thu Nov 30, 2017 1:17 am

Re: Update to CEF 3.3538.1848.g1d1fe01

Post by dilfich »

In the program directory is created empty folder blob_storage, it is possible as that to disconnect?
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Update to CEF 3.3538.1848.g1d1fe01

Post by salvadordf »

dilfich
Posts: 368
Joined: Thu Nov 30, 2017 1:17 am

Re: Update to CEF 3.3538.1848.g1d1fe01

Post by dilfich »

This was not exactly 3.3325.1749 (65 chrome)
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Update to CEF 3.3538.1848.g1d1fe01

Post 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.
dilfich
Posts: 368
Joined: Thu Nov 30, 2017 1:17 am

Re: Update to CEF 3.3538.1848.g1d1fe01

Post 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?
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Update to CEF 3.3538.1848.g1d1fe01

Post 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.
Post Reply