hi everyone.
i use webbrowser to load a html many times,than i find that when i Destroy my windows,the memory do not decrease.
My English is bad, please forgive me!
if you can understand, please help me.
i ask many people,they think this is a bug of the Microsoft,i do not think so.
maybe, i do not find a right way.
my program run on window7 and IE8.
im_axwindow_ui is a CAxWindow class.
my Key code:
im_axwindow_ ui m_scroll_ui;
CRect _rc;
GetClientRect(&_rc);
m_scroll_ui.Create(m_hWnd, CRect(0,27,_rc.right,_rc.bottom),NULL,WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS|WS_CLIPCHILDREN|WS_VSCROLL,NULL);
m_scroll_ui.CreateControl(IDC_HISTORY_HTML);
m_scroll_ui->QueryControl(&m_pWeb2);
DispEventAdvise(m_pWeb2);
m_pWeb2->put_Silent(VARIANT_TRUE);
pHost = new CImpIDocHostUI(this);
pHost->changeStyle(_style);
pHost->AddRef();
SetExternalUIHandler(pHost);
DispEventUnadvise ( m_pWeb2 );
m_pWeb2.Release();