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



Hey,

On Wed, 2003-04-09 at 04:40, Alex Hornby wrote:
> 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.

	Well, you need to create a custom POA to do persistent objects anyway
... so you'll create it with the USER_ID policy.

	Pity, ORBit* doesn't support persistent objects - that's one I'd really
like to see patches for .. There's a mail from me in the archives
detailing how I proposed to do it for ORBit (May/June 2001).

Good Luck,
Mark.




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