embedded - How to destroy the Tchromium (Delphi) component dynamically created? -


how destroy tchromium component dynamically created ? i'm using in dll , component necessary create , destroy several times without deallocate dll, problem is not releasing memory , unable clear cache folder. if use cefshutdown problems occur in time recreate browser again. i'm using latest version of dcef3 . create dynamically 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 destroy , problem occurring time try again recreate component without deallocate dll.

also solve problem i'm having useragent can not change recreation of browser.

i appreciate suggestions solve problem.

this behaviour designed. issue 1237 on chromium issue tracker identical issue. relevant excerpt is:

cefinitialize/cefshutdown cannot called multiple times in same process. can create/destroy multiple browser windows without re-initializing cef.

you have refrain calling cefshutdown.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -