Re: Many factories in a single server.



On 23 Dec 2000 09:42:20 -0500, Michael Meeks wrote:
>
>
> This sounds extremely strange; we have a slew of PersistXYZ
> interfaces all implementing 'load', 'save' etc. that work well when both
> implemented in the same server.
>
> I would imagine you are not creating an object of the correct
> type, or you are aggregating several interfaces and have got a pointer to
> the wrong interface, or something similar.
Hmm, All the interfaces belong to their own factory at the moment. The main factory uses the switch based
on name to demux to the correct component factory.
The only thing that I can think of is maybe todo with the gtk+
part of bonobo (which I am still now 100% on), each component has its own gtk_type made with

GtkTypeInfo info = {
PRIV_BONBON_GET_TYPE_COMPONENT_NAME(COMPONENT_CORBA_OBJECT) ,
sizeof (COMPONENT_OBJECT),
sizeof (COMPONENT_CLASS),
(GtkClassInitFunc) PRIV_BONBON_PMETHD(_class_init),
(GtkObjectInitFunc) NULL,
NULL, /* reserved 1 */
NULL, /* reserved 2 */
(GtkClassInitFunc) NULL
};

where COMPONENT_OBJECT and COMPONENT_CLASS are gtk+ obj/class very similar to
the echo bonobo sample (note that each server uses the same type for obj/class) and the
class_init is a different function for each component, and basically the
PRIV_BONBON_GET_TYPE_COMPONENT_NAME finally preprocesses to a string that has
a different prefix for each component. I think there isn't any problem with this gtk stuff, most
of it is based on echo, and other samples...

I'll also recheck my macros to make sure that there is nothing funky going on...


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]