[Mono-bugs] [Bug 73637][Maj] Changed - Glade AutoConnect calling convention mismatch

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 17 Mar 2005 15:23:24 -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 vargaz@gmail.com.

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

--- shadow/73637	2005-03-13 17:14:12.000000000 -0500
+++ shadow/73637.tmp.30715	2005-03-17 15:23:24.000000000 -0500
@@ -11,13 +11,13 @@
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: projects@saring.de               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: Glade AutoConnect crashes with mono JIT, but works with mint
+Summary: Glade AutoConnect calling convention mismatch
 
 Hi,
 
 I have the following problem with two Gtk# applications using Glade# on
 Windows XP, on Linux everything works fine.
 
@@ -66,6 +66,14 @@
 
 Bye,
 Stefan
 
 ------- Additional Comments From projects@saring.de  2005-03-13 17:14 -------
 Sorry, I mean the only way to get it started is mint from 1.0.6.
+
+------- Additional Comments From vargaz@gmail.com  2005-03-17 15:23 -------
+This is the classic mismatched calling conventions problem. The
+glade-sharp code passes a managed delegate (ConnectFunc) to the
+glade_xml_signal_autoconnect_full () function. The runtime creates a
+wrapper around the delegate using the STDCALL calling convention, but
+the C code in glade calls it using the cdecl calling convention.
+