Re: Crash when trying to QueryService IID_ISimpleDOMDocument or IID_ISimpleDOMNode with FF4 RC1 on Windows 7 SP1 64 bits

Alexander Surkov <[email protected]> Sat, 12 Mar 2011 10:32:20 +0800
Newsgroups gmane.comp.mozilla.accessibility
Message-ID <[email protected]>
Hi, Sylvain.

Perhaps you get the bug https://bugzilla.mozilla.org/show_bug.cgi?id=606468.

Thank you.
Alex.


On Sat, Mar 12, 2011 at 6:58 AM, Sylvain <[email protected]>wrote:

> 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
> _______________________________________________
> dev-accessibility mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-accessibility
>