[omniORB] ORB_init doesn't parse out -ORB args?

Duncan Grisby duncan at grisby.org
Mon Dec 22 16:23:52 GMT 2003


On Tuesday 16 December, Alexy Khrabrov wrote:

> > Looks like ORB_init(argc, argv) doesn't take out -ORB arguments?
> > I thought that's in CORBA spec somewhere, MICO does it by default...
> 
> What I mean is, they should be taken out of argv, and argc decreased
> accordingly after the call to ORB_init, for all the correct -ORB options.
> Is this supposed to happen with omniORB as well?

It is supposed to happen, and as far as I can see, it does. Look at
src/examples/echo/eg2_clt.cc, for example. It complains if argc is not
2, but it still works fine if you give it a bunch of -ORB arguments.

What makes you think it doesn't work?

Cheers,

Duncan.

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



More information about the omniORB-list mailing list