I am passing a class by value, which has as a member a struct.
On the other end, the struct arrives initialized to its default values, losing its member values. The method call works OK when I redefine the struct as a class, without changing anything else.
These are the Slice definitions (the struct in question is 'Date'):
The class is actually passed in the form of a sequence (PubDateSeq).Code:module IServices2ICE { . . . struct Date { byte Day; byte Month; short Year; }; ["clr:property"] class PubDate { string Id; string PubKey; string ComboKey; ::IServices2ICE::Date Date; bool Cancelled; bool Produced; }; sequence<PubDate> PubDateSeq; . . . }
The Date member always arrives with its members set to 0.
I can't see what I am doing wrong, so there is a chance of a bug.
I hope though that this is my fault, as it would be a serious issue.
The Ice version is 3.2.1.
Karl

Reply With Quote
