Re: CORBA_ORB_init in mt environment



Hi Jeff,

On Fri, 2003-09-05 at 16:38, Jeff Goris wrote:
> I have written a simple program that logs on to a server and calls a
> few methods then logs off. The server implements its own unique
> methods as an access control mechanism. This program works fine. When
> I attempt to do the same thing in a multithreaded program I am able to
> login successfully, but receive the following exception when I try to
> call a method to get the data I am after. The exception is:

	Are you using ORBit2 >= 2.8.0 ?

> Is it a problem if CORBA_ORB_init is not called by main() and not
> passed the same argc and argv variables that are passed to main() upon
> process startup? Or should I set up the orb as a global variable?

	Shouldn't be.
 
> If you can't guess, I am new to Orbit and CORBA. What is the purpose
> of passing argc and argv across to CORBA_ORB_init and what options can
> be set this way? I am currently using 

	There are a number of options.

> CORBA_exception_init(adaptor->ev);
> adaptor->orb = CORBA_ORB_init(&argc, argv, "orbit-local-mt-orb",
> adaptor->ev);
>  
> In case it helps, I am using RedHat 9.0 and Orbit2-2.6.0-2

	Ah; therein lies the problem. Grab ORBit2-2.8.0 from ftp.gnome.org.

	Regards,

		Michael.


-- 
 michael@ximian.com  <><, Pseudo Engineer, itinerant idiot




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]