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.

Seldom error before closing application

Post Reply
thefunkyjoint
Posts: 460
Joined: Thu Aug 10, 2017 12:40 pm

Re: Seldom error before closing application

Post by thefunkyjoint »

Hello,

I also get the exactly same behaviour sometimes, never knew how to fix it.
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Seldom error before closing application

Post by salvadordf »

I'll take a look as soon as I can.
thefunkyjoint
Posts: 460
Joined: Thu Aug 10, 2017 12:40 pm

Re: Seldom error before closing application

Post by thefunkyjoint »

Winexcel wrote: Thu Mar 15, 2018 3:22 pm
thefunkyjoint wrote: Thu Mar 15, 2018 12:48 pm Hello,

I also get the exactly same behaviour sometimes, never knew how to fix it.
Do you also use the FMX platform?
No, i use the VCL version.
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Seldom error before closing application

Post by salvadordf »

While I try to find the cause of this issue please check the following :
  • If your app don't use a 'cache' directory set GlobalCEFApp.DisableGPUCache to TRUE.
  • Don't modify VCL properties inside TChromium events because most of those events are executed in a CEF thread and some VCL properties are not thread safe. It's recommended that you use 'PostMessage' to send a message to the main form to modify the VCL in the main application thread.
  • If you see that error then close your app and delete the cache contents if you use a 'cache'.
  • Some properties are considered 'experimental' by Google like : GlobalCEFApp.SmoothScrolling, GlobalCEFApp.SitePerProcess, GlobalCEFApp.FastUnload and TChromium.HyperlinkAuditing. Using these properties might cause problems.
  • If your app doesn't need Flash, set GlobalCEFApp.FlashEnabled to FALSE.
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Seldom error before closing application

Post by salvadordf »

I just updated CEF4Delphi and removed the GlobalCEFApp.DisableGPUCache property.
Now GlobalCEFApp disables the GPU cache automatically if there's no 'cache' directory.
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Seldom error before closing application

Post by salvadordf »

I've created an issue in GitHub for this bug :
https://github.com/salvadordf/CEF4Delphi/issues/108
Post Reply