StructLayout and Size problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

can anyone figure it out, why this code works fine on Full Framwork, but not
correctly on Compact framework. In particular, I see that size of the struct
is igonred in CF (always 8 according to
System.Runtime.InteropServices.Marshal.SizeOf)

[StructLayout(LayoutKind.Sequential, Size=64)]
private struct TestStruct
{
public int data1;
public int data2;
}

Can anyone help me,
Bostjan
 
Back
Top