How to destroy the Tchromium component dynamically created ? I'm using in a DLL , the component necessary to create and destroy it several times without deallocate the DLL, the problem is that is not releasing memory and is unable to clear the cache folder. If I use CefShutDown problems occur in time to recreate the browser again. I'm using the latest version of DCEF3 . Create dynamically like this:
crm := TChromium.Create(Form1);
crm.SetParentComponent (Panel2);
crm.Align := alClient;
to destroy tried in several ways:
FreeAndNil(crm);
crm.free;
crm := nil;
CefShutDown;
The CefShutDown resolved in time to destroy , the problem is occurring by the time I try again recreate the component without deallocate my DLL.
Also solve another problem I'm having with the UserAgent can not change the recreation of the browser.
I appreciate any suggestions to solve my problem.