barneygovan
Programmer
Hi,
My problem is this:
I have a server exposing a CORBA object (written in C++). This works perfectly if I initialise the ORB in the main() function but if I encapsulate the ORB code into an object, to isolate the CORBA code from the rest of the program, then I get a run time error on the CORBA::ORB_init() method call.
A very bad solution that we found was to #include the main header file for the ORB into the .cpp file with the main() function in it. However, this is only feasible to do in very simple programs, and we cannot stipulate that everyone using our component will have to link against the ORB. Also it plays havoc with our other #includes.
I am using the ACE ORB (version 1.0 I believe) and was wondering if anyone else has had a similar problem and if so, how was it solved?
Thanks in advance
Barney Govan
R&D Engineer
My problem is this:
I have a server exposing a CORBA object (written in C++). This works perfectly if I initialise the ORB in the main() function but if I encapsulate the ORB code into an object, to isolate the CORBA code from the rest of the program, then I get a run time error on the CORBA::ORB_init() method call.
A very bad solution that we found was to #include the main header file for the ORB into the .cpp file with the main() function in it. However, this is only feasible to do in very simple programs, and we cannot stipulate that everyone using our component will have to link against the ORB. Also it plays havoc with our other #includes.
I am using the ACE ORB (version 1.0 I believe) and was wondering if anyone else has had a similar problem and if so, how was it solved?
Thanks in advance
Barney Govan
R&D Engineer