lfern wrote:
When I call "do_GetService" it returns in rv NS_ERROR_FAILURE. I do not know what's happen because in linux it works!!!. Any help would be
greatly apreciated.
Are you running a debug build? If not, then you'll probably need to remove the compreg.dat and xpti.dat files from your components directory. If you are, then check the console output. There should be some helpful messages displayed.
More than likely your component isn't getting registered. Also when it starts up, you should see a message about a generic component being found that should match the name of your component.
David Bradley
I am in debug mode (in windows and linux). I have deleted both files xpti.dat and compreg.dat and I have the same problem. I don't see anything more in the console output about my component ("SECCLAB"). I write you the console output at the end of this message.
I have developed my component from XMLExtras mozilla component (I want to export my function to javascript as it does with XMLSerializer or DOMParser functions). I do the same things it does, but only two are different:
1.- In XMLExtras Makefile, in the EXTRA_DSO_LDOPTS variable it includes $(MOZ_COMPONENT_LIBS) libraries, and my Makefile only include:
EXTRA_DSO_LDOPTS = \
$(DIST)/lib/$(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX) \
$(DIST)/lib/$(LIB_PREFIX)embedstring.$(LIB_SUFFIX) \
$(NSPR_LIBS) \
$(NULL)If I add $(MOZ_COMPONENT_LIBS) at top of EXTRA_DSO_LDOPS it works!, but DLL links to xpcom.dll and it does not work in other versions of mozilla (I develope on 1.3b). I do not think this is the problem because in linux I do not link with $(MOZ_COMPONENT_LIBS) and everything is OK (it works from 1.1 to 1.3b versions).
2.- In XMLExtras module there is a file called "win32.order". Do you know if this file may be important for windows DLL linking?
Thanks!!!
(Just another thing !!, If I try to QueryInterface the ServiceManager while registering, this returns NR_ERR_NOT_INITIALIZED).
...........
*** Registering nsRDFModule components (all right -- a generic module!)
*** Registering nsRegistryViewerModule components (all right -- a generic module
!)
*** Registering "SECCLAB" components (all right -- a generic module!)
nsGenericModule "SECCLAB": Register hook for CLABExtras component component retu
rned error => 80004005
*** Registering Session_History_Module components (all right -- a generic module
!)
*** Registering nsTestDynamicModule components (all right -- a generic module!)
*** Registering TransformiixModule components (all right -- a generic module!)
*** Registering nsTransactionManagerModule components (all right -- a generic mo
dule!)
*** Registering nsTypeAheadFind components (all right -- a generic module!)
*** Registering nsUConvModule components (all right -- a generic module!)
*** Registering nsUCvMathModule components (all right -- a generic module!)
*** Registering nsUniversalCharDetModule components (all right -- a generic modu
le!)
*** Registering nsURILoaderModule components (all right -- a generic module!)
*** Registering nsVCardModule components (all right -- a generic module!)
*** Registering nsWalletModule components (all right -- a generic module!)
*** Registering Browser_Embedding_Module components (all right -- a generic modu
le!)
*** Registering nsWalletViewerModule components (all right -- a generic module!)
*** Registering nsXMLExtrasModule components (all right -- a generic module!)
