[omniORB] sequence<interface>
Duncan Grisby
dpg1001@cam.ac.uk
Fri, 18 Dec 1998 18:00:11 +0000
On Friday 18 December, oleg_machulski@geocities.com wrote:
[...]
> You used _this() in your example, but in omniidl2
> generated .hh file it is just a substitute for _duplicate:
> --------------
> Hello_ptr _this() { return Hello::_duplicate(this); }
> --------------
You should always use _this() to get a CORBA object reference from a
C++ implementation object. _duplicate() only works at the moment
because of the way omniORB works internally. Using _duplicate() breaks
if you use the omniORB life cycle support, and will break in all
situations when we do POA support.
Cheers,
Duncan.
--
-- Duncan Grisby --
-- dpg1001@cam.ac.uk, DGrisby@orl.co.uk --
-- http://www.cl.cam.ac.uk/~dpg1001/ --