[Mono-bugs] [Bug 29548][Nor] Changed - Delegate/Callback defined in native code structure
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
4 Nov 2002 01:38:04 -0000
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 neilcawse@hotmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=29548
--- shadow/29548 Fri Oct 25 03:08:01 2002
+++ shadow/29548.tmp.15914 Sun Nov 3 20:38:04 2002
@@ -232,6 +232,30 @@
Dietmar - can you help? Afraid its beyond me!
------- Additional Comments From dietmar@ximian.com 2002-10-25 03:08 -------
Please can you provide a smaller test case to reproduce the bug,
preferable one I can run on Linux?
+
+------- Additional Comments From neilcawse@hotmail.com 2002-11-03 20:38 -------
+using System.Runtime.InteropServices;
+
+public class Test {
+
+ public delegate void TestDelegate();
+
+ public struct TestStruct {
+ public TestDelegate TestInstance;
+ }
+
+ [DllImport ("user32.dll")]
+ public static extern void RegisterClassA (
+ ref TestStruct lpWndClass);
+
+ static public void Main () {
+ TestStruct ts = new TestStruct();
+ RegisterClassA(ref ts);
+ }
+}
+
+This fails in windows running with mono or mint and works using ms
+runtime.