Crash when trying to QueryService IID_ISimpleDOMDocument or IID_ISimpleDOMNode with FF4 RC1 on Windows 7 SP1 64 bits
Sylvain <[email protected]> Fri, 11 Mar 2011 14:58:47 -0800 (PST)
| Newsgroups | gmane.comp.mozilla.accessibility |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <5f0b12d5-0f00-4aea-92f4-c62b5dbbafbb@p24g2000vbl.googlegroups.com> |
Hi, My code works fine with FF4 RC1 on Windows XP SP3, but crashes on Windows 7 SP1 Family Premium 64 bits : VARIANT vtStart,vtResult; vtStart.vt=VT_I4; vtStart.lVal=CHILDID_SELF; hr=pAccessible->accNavigate(0x1009,vtStart,&vtResult); // NAVRELATION_EMBEDS = 0x1009 if (FAILED(hr)) ... if (vtResult.vt!=VT_DISPATCH) ... pIDispatch=(IDispatch*)vtResult.lVal; if (pIDispatch==NULL) ... hr=pIDispatch->QueryInterface(IID_IServiceProvider, (void**)&pServiceProvider); if (FAILED(hr)) ... hr=pServiceProvider->QueryService(refguid,IID_ISimpleDOMDocument, (void**) &pSimpleDOMDocument); My program crashes when calling QueryService. I also tried to call QueryService on the first document child (which is a <BR> object), result is the same. It looks like there is a problem with IID_ISimpleDOMDocument and IID_ISimpleDOMNode interfaces... So I tried regsvr32.exe accessiblemarshal.dll on cmd.exe of administrator mode, but it still crashes. Does anybody have the same problem? Any idea? Thanks! - Sylvain