[omniORB] Memory Leaks.
Duncan Grisby
duncan@grisby.org
Sat Sep 21 22:27:02 2002
On Thursday 5 September, Venkateswara Rao Kanaparthi wrote:
> All through out the program I make sure that my impl object has only
> ONE reference. That is I am calling _remove_ref() for every _this().
> When I want to destroy my impl object, I do a deactivate using the
> following peice of code:
[...]
> We believe that some of the local refs are not getting freed even
> after the servant gets destroyed. The above log shows "has local
> refs" while deactivating. Is there a way to free these local refs
> too? Is our analysis correct or did we miss something?
You are confusing servant references with object references. You need
to release the object references you obtain by calling _this(), either
with CORBA::release(), or, better, by assigning the object references
to _var types.
Cheers,
Duncan.
--
-- Duncan Grisby --
-- duncan@grisby.org --
-- http://www.grisby.org --