[Mono-bugs] [Bug 590014] Struct with linear layout containing IntPtr is not marshaled properly
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Mar 21 11:18:33 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=590014
http://bugzilla.novell.com/show_bug.cgi?id=590014#c4
Pavel Savara <pavel.savara at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |CLOSED
Resolution| |INVALID
--- Comment #4 from Pavel Savara <pavel.savara at gmail.com> 2010-03-21 15:18:33 UTC ---
It seems like you are right
http://www.programmersheaven.com/2/Calling-conventions
cdecl/gcc : "All structures and classes are returned in memory regardless of
complexity or size."
So my assumption that structures passed by value are really passed by value was
incorrect!
It would be useful to mention this behavior in Structure marshaling here
http://www.mono-project.com/Interop_with_Native_Libraries#Class_and_Structure_Marshaling
--
Configure bugmail: http://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