[omniORB] what happens if orb-destroy() is called before orb-run()

Duncan Grisby dgrisby@uk.research.att.com
Thu, 07 Mar 2002 11:00:00 +0000


On Thursday 7 March, "Tobias Eriksson" wrote:

> There were a couple of ugly solutions here in our code, we were trying
> to do orb->destroy on a call to the servant, something like cutting off
> the branch you are sitting on. The problems are hopefully solved now.

The correct thing to do in that sort of situation is to call
orb->shutdown() inside the operation, giving a wait_for_completion
value of false. Then do orb->destroy() after orb->run().

Cheers,

Duncan.

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