[omniORB] refcounting problem in omniNames (omniORB 3.00pre1)

Christof Meerwald cmeerw@htl.fh-sbg.ac.at
Thu, 30 Sep 1999 00:20:34 +0200


I've encountered the following reference counting problem in omniNames
(omniORB 3.00pre1 27.9.1999):

NamingContext_i objects are created with a reference count of 2 (1 from the
RefCountServantBase and another 1 from the activate_object_with_id call in
the constructor). So the destructor of these objects is never called because
the destroy method only decrements the reference count by one
(deactivate_object) leaving the objects with a reference count of 1. On the
next call to servant_to_id the POA throws an exception which kills omniNames.


bye, Christof

-- 
Don't hate yourself in the morning... sleep until noon!