After more investigations it looks like all the previous errors were due to
not registering the components. I was under the impression that once i run
regxpcom i did not needed RegisterComponentLib for every component i am
going to use ! This does not make sense of course (at least to me). I solved
that problem by reusing the NS_SetupRegistry() function. I am now at a stage
where i need to register the preference component/service. it is breaking at
:

debug_RegisterPrefCallbacks() line 971 + 39 bytes
(widget/src/xpwidgets/nsBaseWidget.cpp)

I will be glad if someone provided:
urgent:
1) who implements nsIPref ? which dll/xpt should i put under components. if
it is handled by the main dll's how do i register it. Even if you have no
time tell where nsIPref is registered.

nice to have
1) a list of dependencies between components
2) a list of which dll implements which interface. (dy dll name and/or
Interface name )
3) a static access to the class CID by GetCID() just like the IID
counterpart. So that i can get rid of all that NS_DEFINE_IID
4) someone explain to me why i have to register a component twice . one with
regxpcom and one with RegisterComponentLib. Is that supposed to change in
the future ?

That is enough for today ... it is already too late !

FYI i am using m18 !



Reply via email to