Page 1 of 1

Re: Eval JS doesn't realease Interfaces

Posted: Fri Mar 09, 2018 8:22 am
by salvadordf
Hi,

Delphi releases all interfaces automatically when they are out of scope. In fact, they are released even before the final "end" that marks the last line of that procedure.

According to the documentation, interfaces are released when the last reference to them goes out of scope :
http://docwiki.embarcadero.com/RADStudi ... References

pV8Context is a local interface in that procedure and it will be released automatically right after the pV8Context.Exit call.