[omniORB] enum problem?
Sai-Lai Lo
S.Lo@uk.research.att.com
28 Jun 1999 14:08:47 +0100
Perhaps you forget to initialise the value of the enum?
>>>>> Janne Haverinen writes:
> 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?
--
Sai-Lai Lo S.Lo@uk.research.att.com
AT&T Laboratories Cambridge WWW: http://www.uk.research.att.com
24a Trumpington Street Tel: +44 1223 343000
Cambridge CB2 1QA Fax: +44 1223 313542
ENGLAND