Re: problem with the first getSources call

Neil Deakin <[email protected]> Fri, 19 Dec 2008 16:46:25 -0500
Newsgroups gmane.comp.mozilla.devel.rdf
Message-ID <[email protected]>
Mariano Cuenze wrote:
> Hi.
> 
> I am working for my first time with an RDF database. After loading the
> rdf databae from a file, I do some consecutives GetSources calls with
> the neccesary code to proccess every one. For some reason, allways,
> the first call fails. If I exchange the GetSources calls, the new
> first one will fail too. Is there something to be done between the
> loading and the "querying" to be sure that this will not happen again?
> 
> Thank you for the help.
> 
> PD: the code that i am using is:

Are you waiting for the rdf datasource to load? You might want to use 
GetDataSourceBlocking or add a listener to wait for it to load.