Re: ORBit2 Segfault - was Re: [PATCH] bad ...
- From: Alex Hornby <alex anvil com>
- To: Michael Meeks <michael ximian com>
- Cc: Greg Edwards <greg nas-inet com>, orbit <orbit-list gnome org>,Mark McLoughlin <mark mcloughlin sun com>
- Subject: Re: ORBit2 Segfault - was Re: [PATCH] bad ...
- Date: 08 Apr 2003 17:40:27 +0100
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]