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.

LoadLibrary on run time and not initialization

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

Re: LoadLibrary on run time and not initialization

Post by salvadordf »

Hi,

You can use a try..finally too but remember that you can only initialize CEF once per process.

Some demos use the initialization and finalization sections for convenience but you can use a try..finally too, assuming that callBroswer returns after all the browsers are properly closed.

DestroyGlobalCEFApp frees GlobalCEFApp and calls cef_shutdown which has these code comments :

Code: Select all

///
// This function should be called on the main application thread to shut down
// the CEF browser process before the application exits.
///
Post Reply