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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

sylvain.werdefroy
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
[hidden email]
https://lists.mozilla.org/listinfo/dev-accessibility
Reply | Threaded
Open this post in threaded view
|

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

Alexander Surkov
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 <[hidden email]>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
> [hidden email]
> https://lists.mozilla.org/listinfo/dev-accessibility
>
_______________________________________________
dev-accessibility mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-accessibility
Reply | Threaded
Open this post in threaded view
|

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

sylvain.werdefroy
In reply to this post by sylvain.werdefroy
Hi Alex,

I'm not sure since both my program and Firefox are 32 bits, only the
system is 64.

Sylvain

On 12 mar, 03:32, Alexander Surkov <[hidden email]> wrote:

> Hi, Sylvain.
>
> Perhaps you get the bughttps://bugzilla.mozilla.org/show_bug.cgi?id=606468.
>
> Thank you.
> Alex.
>
> On Sat, Mar 12, 2011 at 6:58 AM, Sylvain <[hidden email]>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
> > [hidden email]
> >https://lists.mozilla.org/listinfo/dev-accessibility

_______________________________________________
dev-accessibility mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-accessibility