[omniORB] How-to shutdown a Server...

Duncan Grisby duncan@grisby.org
Tue Oct 22 15:36:01 2002


On Thursday 17 October, dsam@tid.es wrote:

> void Echo_i::apagar(){
>   // insert code here and remove the warning
>   orb->shutdown(true);
> }

The true argument tells shutdown to wait for completion of all pending
requests. It can't possibly do that since you're calling from within a
request. In omniORB 4 you get a BAD_INV_ORDER exception; in omniORB 3,
you get a deadlock.

Cheers,

Duncan.

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