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.

FreeLibrary function takes too long

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

Re: FreeLibrary function takes too long

Post by salvadordf »

I did this test inside a virtual machine :
  • Compiled CEF4Delphi in "Release" mode.
  • Compiled SimpleBrowser in "Release" mode.
  • Closed Delphi.
  • Made sure there was no windows update or antivirus running in the background.
  • Run SimpleBrowser with the "Release" CEF3 binaries.
  • Wait till the blank page is loaded by default.
  • Close SimpleBrowser.
The last point took less than a second but it should take even less time if you run it outside a virtual machine and you do it on a faster computer than mine... which is very probable.

If you try to close the browser after you navigate to a website, it will take longer because CEF3 has to close the connections and free all the resources that it created loading that website.

If that's the case, hide your application from the task bar while it's closing.
Post Reply