Seems like you nailed it on the head, thanks a million !
Small follow ups :
1. Is this the case for all / most of Carbon APIs ? 
2. Is there a concentrated reference to find out the Packing value per
"#pragma options
align" setting ? tried to google around to find out without much luck...


Robert Jordan wrote:
> 
> No. It's because UTCDateTime is defined within a `#pragma options
> align=mac68k' section in its C header file.
> 
> This means it doesn't have a default structure packing. IIRC,
> "mac68k" packing means a packing of one, so your managed UTCDateTime
> struct must be declared with:
> 
> [StructLayout(LayoutKind.Sequential, Pack = 1)]
> 
> Robert
> 
> _______________________________________________
> Mono-list maillist  -  [email protected]
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Marshaling-on-Mac-tp19144208p19157746.html
Sent from the Mono - General mailing list archive at Nabble.com.

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to