My C++Builder application (RAD Studio XE4) is leaking memory. In doing some debugging, I tracked down the cause to the TWebBrowser component on a form that's created and destroyed; apparently, the TWebBrowser or one of the objects it creates is leaking memory.
I've also seem some strange access violations: if this form with its TWebBrowser has ever been created, and if a modal dialog is currently open, then a Group Policy refresh (whether from Windows' periodic background updates or from calling gpupdate
) causes an access violation. Presumably the incompletely deleted TWebBrowser is trying to reapply some Internet Explorer settings and chasing a pointer to a deleted object.