[omniORB] enum problem?

Janne Haverinen johannes@ees2.oulu.fi
Mon, 28 Jun 1999 15:39:20 +0300


Why my client gets exception when using enums in the returned structure?

I have defined following attribute: attribute MotionCtrl X;

If MotionCtrl is defined like below, I'll get an exception when reading
attribute X:

enum MotionMode {TIME_MODE, POSITION_MODE, VELOCITY_MODE, STOP_MODE};

struct Motion
{
     MotionMode mode;

     float acceleration;
     float velocity;
    .
    .
    .
};

struct MotionCtrl
{
     Motion rotational;
     Motion translational;

};

If I leave out the enum part of the Motion structure, the client will
work correctly when reading X. What I did wrong?

Regards,
Janne Haverinen