[omniNotify] Re: [omniORB] Deleting a StructuredPushConsumer
Duncan Grisby
duncan at grisby.org
Wed Jun 16 13:06:03 BST 2004
On Tuesday 15 June, Jon Dyte wrote:
> However wont Frederic still need to call _remove_ref() after he creates
> event_observer on the heap, if he wants event_observer to be deleted as part
> of the sequence which begins with a call to deactivate_object?
Yes, that is correct.
[...]
> In omniORB the POA calls _add_ref when it activates the servant, in
> which case the ref count will be two, assuming the ref count is 1 as
> a result of the new.
Calling _add_ref when the servant is activated is required by the
CORBA spec, so it's not just what omniORB does. All compliant ORBs do.
Cheers,
Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
More information about the omninotify-list
mailing list