[Mono-bugs] [Bug 70173][Maj] Changed - Delegate on int.ToString returns junk

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 4 Dec 2004 10:43:10 -0500 (EST)


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 lists@munshi.biz.

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

--- shadow/70173	2004-12-03 09:16:06.000000000 -0500
+++ shadow/70173.tmp.32087	2004-12-04 10:43:10.000000000 -0500
@@ -68,6 +68,20 @@
 Whatever it is, this looks like a problem with how we get the method. 
 What is probably happening is that ldftn is getting the function that 
 expects a valuetype. This would be fine, but looking at the delegate 
 code, it seems that we evaluate it as a boxed object. We probably 
 need ldftn to return the unboxing wrapper. 134542488 is probably the 
 address of the int32 vtable.
+
+------- Additional Comments From lists@munshi.biz  2004-12-04 10:43 -------
+I guess I need to clarify, I am learning C#, this was my first 
+attempt to write delegates!! 
+What is ldftn?? (Dont bother to explain it to me, I guess I wont 
+follow). 
+I am running mono on NLD9 (Kernel 2.6.5), I also tried it on SLP9.1 
+and SLP9.2. I am using mono 1.0.4 on NLD. I have tried this on mono 
+1.1 and 1.0.2, the bug is the same everywhere for me everywhere. 
+Please let me know if I can help in anything. 
+ 
+Compiling using mcs and running it on MS.NET on winXP works well. 
+Compiling on MS.NET and running on mono gives an wrong result. 
+