[omniORB] Memory Leaks.

Venkateswara Rao Kanaparthi kvrao@winphoria.com
Tue Sep 24 05:30:01 2002


Hi Duncan,

You are correct. Thanks for pointing that out. I will update my code 
accordingly.

Thanks,
KV

Duncan Grisby wrote:

>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.
>
>  
>