A list for the developers of CellML tools

Text archives Help


[cellml-dev] CellML wchar sizes


Chronological Thread 
  • From: lpsmith at spod-central.org (Lucian Smith)
  • Subject: [cellml-dev] CellML wchar sizes
  • Date: Wed, 9 Dec 2009 06:33:36 +0000

* Andrew Miller <ak.miller at auckland.ac.nz> [2009-12-09 00:46] writes:
> Lucian Smith wrote:
> >So, I'm still not sure when I need to use getter_AddRefs() and when I
> >don't, but so far it seems the answer is 'everywhere' which is annoying,
> >but there you go. I *finally* got all my old code translated into the new
> >regime, faked up some string to nsString converters (which I'm sure will
> >fail horribly if ever used for real unicode, but at this point I don't
> >care), so I got it to actually run. And it immediately failed:
> >
> > nsresult rv;
> > nsCOMPtr<cellml_apiICellMLBootstrap>
> > boot(do_GetService(CELLML_BOOTSTRAP_CONTRACTID, &rv));
> > NS_ENSURE_SUCCESS(rv, -1);
> >
> >'rv' turned out to be 2147746132, which wasn't very helpful, but I managed
> >to translate that into hex via google, then look *that* up in nsError.h
> >and finally found out that it means "NS_ERROR_FACTORY_NOT_REGISTERED".
> >
> >I don't know how to register a factory, and actually have a very dim idea
> >of what a factory is in the first place. Help?
>
> Are you running this with xulrunner, or through your own code directly
> using XPCOM? If the latter, are you requesting XPCOM components be
> registered?

I'm running it myself. So, yes, presumably I have to register something,
but I don't know how to do that. I didn't know there was a xulrunner to
run something from, but since this is a library, I'm pretty sure I don't
want to do that.

-Lucian




Archive powered by MHonArc 2.6.18.

Top of page