[Mono-bugs] [Bug 59909][Wis] New - passing classes to C library functions doesn't allow modification

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 9 Jun 2004 20:19:43 -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 richard@garandnet.net.

http://bugzilla.ximian.com/show_bug.cgi?id=59909

--- shadow/59909	2004-06-09 20:19:43.000000000 -0400
+++ shadow/59909.tmp.10015	2004-06-09 20:19:43.000000000 -0400
@@ -0,0 +1,40 @@
+Bug#: 59909
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: richard@garandnet.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: passing classes to C library functions doesn't allow modification
+
+Description of Problem: 
+When passing a simple class that wraps ints to a C library function, the 
+value of the class is not modified. This has been verified to work with 
+the Microsoft C# compiler and a DLL created in C++ Builder; executing the 
+working example with the mono runtime also works. 
+ 
+Steps to reproduce the problem: 
+1. Create a C library with a function taking a pointer to a simple 
+structure or basic data type and modifying its value 
+2. Create a corresponding class in C# 
+3. Pass an instance of the class to the C function 
+ 
+Actual Results: 
+The value of the instance is not modified. 
+ 
+Expected Results: 
+The value of the instance is modified by the C function. 
+ 
+How often does this happen?  
+Every time. 
+ 
+Additional Information: