[Mono-bugs] [Bug 64231][Nor] Changed - [Embedding Mono] Accessing fields of structs
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 30 Aug 2004 16:58:56 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=64231
--- shadow/64231 2004-08-27 18:16:47.000000000 -0400
+++ shadow/64231.tmp.9297 2004-08-30 16:58:56.000000000 -0400
@@ -1,13 +1,13 @@
Bug#: 64231
Product: Mono: Runtime
Version: unspecified
OS: All
OS Details:
-Status: NEW
-Resolution:
+Status: RESOLVED
+Resolution: NOTABUG
Severity: Unknown
Priority: Normal
Component: misc
AssignedTo: mono-bugs@ximian.com
ReportedBy: priewasser@gmx.at
QAContact: mono-bugs@ximian.com
@@ -58,6 +58,15 @@
Friedrich,
I think the problem is, you're loading a struct as a class, structs are directly allocated on
the stack and are passed by value. If you change T to a class; your code works as it
should;
+
+------- Additional Comments From bmaurer@users.sf.net 2004-08-30 16:58 -------
+The problem is that you are calling a value type method with the
+`this' argument as an object. The value type methods expect to have a
+pointer to the value type as an object.
+
+You need to say:
+
+mono_runtime_invoke (method, mono_object_unbox (object), NULL, NULL));