Re: Firefox crash When using rdf:files in a composite datasource with my rdf datasource component!

BenKwan <[email protected]> Tue, 23 Jun 2009 02:25:59 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.rdf
Organization http://groups.google.com
Message-ID <[email protected]>
On Jun 23, 5:02 pm, Neil <[email protected]> wrote:
> BenKwan wrote:
> >i find another way to fix this problem:
>
> >    GetTarget: function(aSource,aProperty,aTruthValue)
> >    {
> >        var retVal = this._rdfDataSource.GetTarget
> >(aSource,aProperty,aTruthValue);
> >        if(!retVal)
> >        {
> >            throw Components.results.NS_ERROR_FAILURE;
> >        }
> >        return retVal;
> >    },
>
> >Is it mean that the RDFContainerUtils leave the work of disposing error to the implementation of nsIRDFDataSource?
>
> What's normally supposed to happen is that the GetTarget function
> returns NS_RDF_NO_VALUE in this case. Unfortunately JS doesn't support
> this value, instead it can only return null. As you have found out, the
> best you can do is to throw NS_ERROR_FAILURE.
>
> --
> Warning: May contain traces of nuts.

right,i read the code just now! So unfortunately according to the
RDFDatasource Components implemented by C++ or JS,.it performs
differnt! :<  And thx a lot for your help!:)