Re: ORBit2 Segfault - was Re: [PATCH] bad ...
- From: Mark McLoughlin <mark skynet ie>
- 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: 09 Apr 2003 07:53:29 +1200
Hey,
On Tue, 2003-04-08 at 23:30, Michael Meeks wrote:
> > There's an I'm here scaffold in the server source blocked by "DEBUG"
> > comments.
>
> As for adding your own object with this strange object id; that it
> appears doesn't work in ORBit2 - I forget the precise rational for this;
> Mark may know - either way, I'd like this feature to work so well tested
> patches are welcome to make it do so.
Yes, you can't use PortableServer::POA::activate_object_with_id with
the RootPOA because the the RootPOA has the SYSTEM_ID policy which means
the POA *must* generate the Object Ids. See 11.3.7.4 (Id Assignment
Policy) and 11.3.8.16 (activate_object_with_id).
So, really you should be using plain old POA::activate(). However,
because the RootPOA has the IMPLICIT_ACTIVATION policy you don't
actually need to explicitly activate the servant. The POA:activate* line
can just be removed.
Good Luck,
Mark.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]