[Mono-bugs] [Bug 64231][Nor] Changed - [Embedding Mono] Accessing fields of structs
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 27 Aug 2004 18:16:47 -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 grompf@sublimeintervention.com.
http://bugzilla.ximian.com/show_bug.cgi?id=64231
--- shadow/64231 2004-08-26 20:12:05.000000000 -0400
+++ shadow/64231.tmp.21802 2004-08-27 18:16:47.000000000 -0400
@@ -2,13 +2,13 @@
Product: Mono: Runtime
Version: unspecified
OS: All
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: misc
AssignedTo: mono-bugs@ximian.com
ReportedBy: priewasser@gmx.at
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -50,6 +50,14 @@
------- Additional Comments From priewasser@gmx.at 2004-08-26 20:12 -------
Created an attachment (id=9696)
T.c (the program which tries to access the C# struct)
+
+------- Additional Comments From grompf@sublimeintervention.com 2004-08-27 18:16 -------
+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;
+