Re: adding interfaces



On 04 May 2001 18:54:20 -0700, Diego Gonzalez wrote:
 
>      It should never be used when the object has been 
>    exposed to the world
> 
> What does that it mean? can i use
> bonobo_object_add_interface on two BonoboXObject
> derived objects?

Yes, if they are aggregated with add_interface prior to returning a ref
of either object to the client.  

If add_interface was used on two objects with outstanding refs, QI
results prior to aggregation could possibly be different than after
aggregation.  That's a COM/Bonobo no-no.

Mike





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