[Mono-bugs] [Bug 79520][Maj] Changed - incorrect binding to gtk_init_check (twice)

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Sep 29 11:29:03 EDT 2006


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 alex.olk at googlemail.com.

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

--- shadow/79520	2006-09-29 11:26:10.000000000 -0400
+++ shadow/79520.tmp.10441	2006-09-29 11:29:03.000000000 -0400
@@ -50,6 +50,18 @@
 oh, and the reason we likely aren't bitten by any memory corruption is
 that the gtk code continually does things like:
 
 if (argc && argv) { ... do stuff ... }
 
 and we're passing argc as 0.
+
+------- Additional Comments From alex.olk at googlemail.com  2006-09-29 11:29 -------
+And to make Paolo happy ;-) the right solution would be:
+
+extern bool gtk_init_check (ref int argc, ref IntPtr argv);
+
+...
+
+IntPtr argv = new IntPtr(0);
+int argc = 0;
+
+gtk_init (ref argc, ref argv);


More information about the mono-bugs mailing list