1234567
STDMETHODIMP CEventSink::Invoke(DISPID dispIdMember, .....) { IWebBrowser2* pSite = 0; HRESULT hr; if(dispIdMember == DISPID_BEFORENAVIGATE2) { hr = ((IDispatch*)pDispParams->rgvarg[0].pdispVal)->QueryInterface(IID_IWebBrowser2, (void**)&pSite);// This line Crashes