[omniORB] Configuration parameters

Wolfgang Glas wolfgang.glas at ev-i.at
Mon Jul 4 14:55:10 BST 2005


Am Montag 04 Juli 2005 12:11 schrieb Hofmann, Bernhard (Siemens EXT):
> Hi
[snip]
>
> I'm calling
> 	CORBA::ORB_init(m_nargc,m_argv)
>
> m_nargc is 2
>
> m_argv is
> 	char* m_argv[] = {"-ORBtraceLevel", "50"};

cf. to the semantics of argv/argc, you have to use:

char* m_argv[] = {argv[0],"-ORBtraceLevel", "50",0};
int m_nargc = 3;
CORBA::ORB_init(m_nargc,m_argv);

The first entry in argv is traditionally the name of the command, which is 
started and in your case, the content does not matter. The argv array is 
expected to be NULL-terminated. Please read the execl(3) manpage.

  Wolfgang



More information about the omniORB-list mailing list