Re: ORBit2 Segfault - was Re: [PATCH] bad ...



On Tue, 2003-04-08 at 16:23, Michael Meeks wrote:
> Hi Greg,
> 
> On Tue, 2003-04-08 at 16:00, Greg Edwards wrote:
> > PortableServer_POA_activate_object_with_id(poa, &objid,
> >                                             &poa_echo_servant, &ev);
> 
> 	You're doing something quite odd here; you're trying to assign your own
> object id - which is only going to work with strange custom POAs etc.
> and is quite unnecessary - if you just activate the object it will get a
> random, unique ID - which is mostly what you want I think.

This is quite a common thing to do when you have persistent objects. For
a good example of this see the Evictor Pattern in the H&V CORBA book.

Cheers,
Alex.




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