|
|
|
|||||
|
C#: Nested struct unmarshalling problem
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'): 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 |
|
|||||
|
Quote:
Build question: The generated binaries are much larger than the original ones, using VS 2005 and your build instructions. I assume the default is a debug build. How do i configure your make file for a release build? Karl |
|
|||||
|
Quote:
Karl |
|
||||||
|
Ah, OK, misunderstanding then. I thought you meant the size of the icecs.dll assembly.
For C++, the executable size really doesn't matter, unless you care about disk space. The debug section in the executable is not loaded into memory at run time, so there is no additional overhead. Without optimization, slice2cs will run a tad slower, but not so that you would notice. Cheers, Michi. |
|
|||||
|
Quote:
Karl |
|
||||||
|
Note that the debug Microsoft runtime DLLs are not redistributable ... that's why we don't include them in the Ice distribution. You should only distribute "release" binaries (built with /MD, not /MDd).
Best regards, Bernard |
|
|||||
|
Quote:
Karl |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| deadlock while nested invoking | hlnpro | Help Center | 2 | 03-07-2007 11:38 AM |
| A problem about struct of multi-items | klsmlzm | Help Center | 4 | 10-24-2006 03:38 AM |
| Blocked by nested callback | roger jin | Help Center | 10 | 07-14-2006 02:16 PM |
| Problem with classes in struct | kovacm | Help Center | 9 | 10-06-2005 02:49 AM |
| forgot me, but I can't declare a recursion nested struct... | damingyipai | Help Center | 3 | 03-25-2004 01:56 AM |