Re: Going from ORBit1 to ORBit2 - does it require any user codechanges?
- From: Michael Meeks <michael ximian com>
- To: Anders Selander <selander pdc kth se>
- Cc: orbit <orbit-list gnome org>
- Subject: Re: Going from ORBit1 to ORBit2 - does it require any user codechanges?
- Date: 05 Feb 2003 12:37:58 +0000
On Wed, 2003-02-05 at 09:34, Anders Selander wrote:
> I have a well-functioning server developed with ORBit1 and a collection
> of specialised Perl-clients, using CORBA::ORBit 0.4.7. However, I would
> like to migrate to ORBit2 for obvious reasons.
Ok - since the on-the-wire format should be 100% compatible, this is
interesting. Are you using the latest ORBit1 ? there are known problems
in old versions.
> To get the server to compile cleanly with ORBit2, it is enough to edit
> the Makefile, changing orbit-config to orbit2-config, orbit-idl to
> orbit-idl-2, and adding glib-config in a few places.
Sounds fine; I'd use pkg-config instead of orbit2-config though.
> But accessing the posts as below only works with ORBit1 - with ORBit2
> the contents gets garbled, as if the wrong memory is referenced. For
> instance, the discriminator often takes a illegal value, rendering the
> value-access uninitialized.
Can you turn on ORBit2 debugging; to do that re-configure ORBit2 with
--enable-debug, install it, then export ORBIT2_DEBUG=traces on the
console, and run your ORBit2 server there. That should show you all the
communications in an elegant form. Is the data you're interested in
actually getting sent ? if so, it's most likely an ORBit-perl / ORBit1
firstname.lastname@example.org <><, Pseudo Engineer, itinerant idiot
] [Thread Prev