Hello NG,
I have two structs.
The only differnce is the order of the members:
public struct DataStruct
{
public UInt16 Sekunde;
public UInt32 BehälterId;
public UInt32 WannenNr;
public UInt16 Station;
};
public struct DataStruct
{
public UInt32 BehälterId;
public UInt32 WannenNr;
public UInt16 Station;
public UInt16 Sekunde;
};
If I use SizeOf for the struct it is 16 forthe first and 12 for the second
struct.
The right value should by 12.
If I change the order, why do I get another length ?
regards
Stephan