Another BUG of IE6.0 @_@?
-
When variable i increase to some value(not always definite),exception occurs,is it another bug of ie6.0? Thx a not! Source code goes as follows: IHTMLDocument2* pDoc2=NULL; IHTMLElementCollection* ppCollection=NULL; IDispatch* ppvdispOption=NULL; pView->GetDHtmlDocument2(&pDoc2);//pView--a pointer to CHTMLEditView,already asigned with enougth memory Assert(pDoc2); pDoc2->get_all(&ppCollection); Assert(ppCollection); ppCollection->get_length(&Count); for (long i=0;i { _variant_t index ; index=i; try { ppCollection->item(index,index,&ppvdispOption); } catch (...) { tagstr.Format("%d",i); AfxMessageBox(tagstr); return FALSE; } if(!ppvdispOption) continue; ppvdispOption->QueryInterface(IID_IHTMLElement,(void **) &pElement); ppvdispOption->Release(); //......... }