unloading is likely failing for the same reason that you cannot instantiate the component. cc'ing dougt since he knows this code best and can probably offer some suggestions...

darin


Ramin Dousti wrote:


On Fri, Dec 12, 2003 at 12:34:34PM -0800, Darin Fisher wrote:



It sounds like the factory did not get registered correctly. Do you see your ContractID/CID mentioned in components/compreg.dat?



I don't seem to have any file with that name there.


Although the logfile shows the following:

1[26ce0]: Loaded library a.out (init)
1[26ce0]: nsNativeComponentLoader: loading 
"/tmp/vocal-basic/code/src/components/solaris/debug/libconfigsvc.so"
1[26ce0]: Loaded library 
/tmp/vocal-basic/code/src/components/solaris/debug/libconfigsvc.so (load lib)
1[26ce0]: nsNativeComponentLoader: Factory creation succeeded for 
rel:solaris/debug/libconfigsvc.so
1[26ce0]: nsNativeComponentLoader: Unloading....
1[26ce0]: nsNativeComponentLoader: nsIModule::CanUnload() returned error for 
/tmp/vocal-basic/code/src/components/solaris/debug/libcon
figsvc.so.

I also don't ubderstand why unload is failing.

Ramin



Might be good to verify that it is present in that file. You might also want to comment out the AutoRegister steps in your code below, and then just use regxpcom to update the registry. Also, NS_InitXPCOM2 will auto-register components in a debug build (and in a non-debug under certain conditions).

Darin


_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom



_______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to