[Mono-bugs] [Bug 70589][Nor] Changed - "const char *" marshalling problem with Gtk.StockManager.Lookup

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 20 Dec 2004 12:01:40 -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 danw@novell.com.


--- shadow/70589	2004-12-18 09:59:29.000000000 -0500
+++ shadow/70589.tmp.13296	2004-12-20 12:01:40.000000000 -0500
@@ -1,23 +1,23 @@
 Bug#: 70589
-Product: Mono: Runtime
-Version: 1.1
+Product: gtk#
+Version: 1.9
 OS: unknown
 OS Details: 
 Status: NEW   
 Severity: Unknown
 Priority: Normal
-Component: JIT
+Component: general
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: danw@novell.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
-Summary: bad free() marshalling a ref struct (?)
+Summary: "const char *" marshalling problem with Gtk.StockManager.Lookup
 This program hangs:
   public class RefTest {
   	public static void Main ()
@@ -63,6 +63,9 @@
 causing the crash. The solution would be to declare those members as
 IntPtr, not string, and marshal their contents manually. Also,
 looking at the documentation of gtk_stock_lookup, it seems like the
 managed prototype should use 'out' instead of 'ref'. This means the
 runtime does not have to copy the contents of the managed structure to
 the unmanaged structure, speeding things up.
+------- Additional Comments From danw@novell.com  2004-12-20 12:01 -------
+Yup, you're right. Sorry for misfiling.