[Mono-bugs] [Bug 81990][Maj] Changed - Bug with interop marshaling using UTF-16 and delegates

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jul 5 12:54:05 EDT 2007

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 dan.maser at inin.com.


--- shadow/81990	2007-07-02 16:35:29.000000000 -0400
+++ shadow/81990.tmp.4976	2007-07-05 12:54:05.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 81990
 Product: Mono: Runtime
 Version: 1.2
 OS: unknown
 OS Details: RHEL WS 4
-Status: RESOLVED   
-Resolution: FIXED
+Status: REOPENED   
 Severity: Unknown
 Priority: Major
 Component: interop
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: Dan.Maser at inin.com               
 QAContact: mono-bugs at ximian.com
@@ -64,6 +64,19 @@
 C# source file that reproduces this problem: sharptest.cs
 ------- Additional Comments From vargaz at gmail.com  2007-07-02 16:35 -------
 Fixed in SVN.
+------- Additional Comments From Dan.Maser at inin.com  2007-07-05 12:54 -------
+The test app that I attached now works with this fix, but that seems
+to uncover a next problem.  My full app crashed in a different place,
+I have created a new test project that reproduces the next problem. 
+It's not the prettiest, but it does reproduce the problem.  If you
+extract the files from sources.tar.gz and execute the "build_it"
+script it will compile the program.  Then run "mono sharptest.exe" and
+it should invoke the interop function that marshals by narrow string.
+ When it tries to invoke the interop function that marshals by LPWstr
+it blows up.  The console indicates that mono is trying to call g_free
+on the return value to the interop function, which I think it should
+not be attempting.  I'll attach the sources.tar.gz now.

More information about the mono-bugs mailing list