[omniORB] orb->shutdown() in a signal handler

Duncan Grisby duncan@grisby.org
Tue Jul 16 14:01:02 2002


On Tuesday 16 July, Favre Benoit wrote:

> thanks, it works fine.
> I have an other question. Is it safe to instanciate corba objects in corba 
> object ?
> I have written a dynamic implementation loader (life cycle object) and it 
> loads implementations from .so libraries. I would like to release the library 
> when it is not needed anymore but if i use CORBA::release on the object, it 
> generates a core dump.

Are you confusing CORBA objects with servants?  CORBA::release() only
releases object references. It has no effect on servants. You must
call POA::deactivate_object() for any servants you have activated.

Are the stubs (i.e. code generated by omniidl) in the .so?  If so,
you're doomed to failure since static constructors register the
stubs, but nothing removes them.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan@grisby.org     --
   -- http://www.grisby.org --