[omniORB] multiple orb result to error!!!!

Duncan Grisby duncan at grisby.org
Wed Feb 11 18:24:15 GMT 2004


On Friday 6 February, antony76 at a-1.net.cn wrote:

> in my application, i use a component which use corba either. in that
> component, orb_init has been called at the begin and a destroy has been
> called after the component destructered.
> 
> but in my main application, i use orb_init at the very begining, after 
>  i use the component(in the component, the orb_init and destroy has been
> called once), i found the orb in main dosen't work!

The ORB is a singleton. Every call to ORB_init gets the same one.

destroy does what it says -- it destroys the ORB singleton. Don't call
it if you want to carry on using it.

Cheers,

Duncan.

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



More information about the omniORB-list mailing list