[omniORB] omniORB Python bindings - How to pass a structure?
Duncan Grisby
duncan at grisby.org
Fri May 12 13:32:47 BST 2006
On Thursday 11 May, Frank Mertens wrote:
> struct MyStruc
> {
> long a,b,c;
> };
>
> interface Acceptor
> {
> void getStruc(in MyStruc s)
> };
>
> python:
> import rpi
> acceptorRef.getStruc(rpi.MyStruc(a,b,c))
>
> But I always get "omniORB.BAD_PARAM_WrongPythonType".
> Why can't I pass that structure here?
That is the way you should be doing it. I assume the parameters have the
wrong type. Check that they are correct. If they are, run with
-ORBtraceExceptions 1 and tell me the line the BAD_PARAM is thrown from.
Cheers,
Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
More information about the omniORB-list
mailing list