[omniORB] Exception when passing a sequence of structs
David Konerding
dek@konerding.com
Fri, 23 Mar 2001 13:25:04 -0800
There is an example in the omniORBpy demos which shows nearly
all the neat things you can do with CORBA:
omni/src/lib/omniORBpy/examples/tests
I used that to figure out whyI was getting CORBA.BAD_PARAM for
passing in a struct (didn't realize you had to 'construct' it as a type,
even if the struct was just composed of elementary types).
Duncan Grisby wrote:
> On Friday 23 March, "Joshua Reynolds" wrote:
>
> > I am having problems passing a sequence of structs.
> > The struct is extremely simple, three string fields.
> > When I try to pass such a sequence, i receive a Corba.BAD_PARAM
> > exception
>
> [...]
> > bar = ... get Bar objRef
> > myFoo = Foo("string1", "string2", "string3")
> > myFooList = [myFoo]
> > bar.method(myFooList)
>
> That code works perfectly fine for me (after changing the Foo to
> _GlobalIDL.Foo). I even tried it on NT in case it was something to do
> with that. Can you try the little client and server programs I posted
> earlier?
>
> Cheers,
>
> Duncan.
>
> --
> -- Duncan Grisby \ Research Engineer --
> -- AT&T Laboratories Cambridge --
> -- http://www.uk.research.att.com/~dpg1 --