[Mono-list] Marshaling on Mac

silver83 silver83 at gmail.com
Tue Aug 26 04:19:38 EDT 2008


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  -  Mono-list at lists.ximian.com
> 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.



More information about the Mono-list mailing list