[Mono-bugs] [Bug 680190] PtrToStructure not working correctly (Specifically with FreeType)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Mar 17 07:47:07 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=680190

https://bugzilla.novell.com/show_bug.cgi?id=680190#c3


--- Comment #3 from Zoltan Varga <vargaz at gmail.com> 2011-03-17 11:47:07 UTC ---
You mapped FT_Long and FT_Pos to 'int' which is not correct on 64 bit
platforms. Unfortunately, pinvoke doesn't contain a datatype which matches C
'long', so you can either:
- use two sets of structures, one for 32 bit and one for 64 bit platforms.
- use IntPtr, which will work work everywhere _except_ brain-dead 64 bit
windows, where sizeof(void*)==8 and sizeof(long)==4.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list