[omniORB] POA deactivation, why and if so when?

Duncan Grisby dgrisby@uk.research.att.com
Thu, 23 Aug 2001 12:10:41 +0100


On Friday 17 August, "ERIKSSON,TOBIAS (A-Sweden,ex1)" wrote:

> I've been using purify to look at memory errors, 
>  I've seen an allocation during poa->activate_object( myObj )
>  that is never deallocated. So my question is thus, should 
>  I destroy the poa object? in the examples eg1 uner echo, 
>  the poa is not deactivated nor destroyed, perhaps this is done
>  through the call to the orb->destroy() ?

orb->destroy() automatically destroys all POAs. (Well, it's actually
orb->shutdown() that does it, but that's called by destroy() if
necessary.)

In omniORB 3, there are currently a number of singletons that are
allocated but never deleted, so you might be seeing one of those.
None of them should be created by activate_object, though. Are you
able to track down what the data is?

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --