[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 07:42:55 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=590014
http://bugzilla.novell.com/show_bug.cgi?id=590014#c1
Zoltan Varga <vargaz at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vargaz at gmail.com
--- Comment #1 from Zoltan Varga <vargaz at gmail.com> 2010-03-21 11:42:53 UTC ---
What platform is this ? On x86 linux, structures are returned differently than
scalar values, so you have to write:
typedef struct {
void *p;
} IntPtrStruct;
IntPtrStruct
jni4net_zero () {
IntPtrStruct s;
s.p = NULL;
return s;
}
--
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