[Mono-bugs] [Bug 79116][Nor] Changed - SIGSEGV using win32 FormatMessage API

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Aug 21 12:33:56 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 robertj at gmx.net.

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

--- shadow/79116	2006-08-21 11:25:35.000000000 -0400
+++ shadow/79116.tmp.19506	2006-08-21 12:33:56.000000000 -0400
@@ -228,6 +228,21 @@
 
 ------- Additional Comments From gert.driesen at pandora.be  2006-08-21 11:25 -------
 It's probably the PtrToStringAuto and StringToHGlobalAuto issue (bug 
 #79117) that is also causing this SIGSEGV, and not just an issue in 
 PtrToStringAuto alone. The number of bytes returned by FormatMessage 
 is not consistent and that is before PtrToStringAuto gets involved.
+
+------- Additional Comments From robertj at gmx.net  2006-08-21 12:33 -------
+Both versions of test.cs that I've uploaded report
+
+10
+10
+drieseng
+
+like MS.NET.
+
+The problem is a discrepancy between DllImport.CharSet = CharSet.Xyz
+and PtrToStringXyz ().
+
+Using of pairwise explicit Ansi or Unicode fix the problem.
+


More information about the mono-bugs mailing list