[omniORB] _this in an object's constructor?
ryan.tecco
rtecco@voxel.ummu.umich.edu
Fri, 10 Sep 1999 15:39:22 -0400 (EDT)
I have a CORBA object that maintains a reference to itself. When I try and
initialize this variable in the constructor with _this() I get a core
dump. Why is this? If I make a member function to return reference given
with _this, it works fine. Any suggestions?
Thanks!
rt
class X{
X_var self;
public:
X()
{
self = _this(); // dies here
}
X_var getObjRef() { return _this(); } // okay, doesn't hang
};
--------------
ryan.tecco
734.476.6646
the university of michigan
"i'll never forget my life
as a carrot."