[Mono-bugs] [Bug 79117][Nor] Changed - Marshal.StringToHGlobalAuto & PtrToStringAuto not working as expected
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Aug 21 13:52:32 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=79117
--- shadow/79117 2006-08-21 13:46:26.000000000 -0400
+++ shadow/79117.tmp.20343 2006-08-21 13:52:32.000000000 -0400
@@ -75,6 +75,19 @@
mismatch in the p/invoke declaration of the
external method.
------- Additional Comments From robertj at gmx.net 2006-08-21 13:46 -------
*** Bug 79062 has been marked as a duplicate of this bug. ***
+
+------- Additional Comments From robertj at gmx.net 2006-08-21 13:52 -------
+The problem is DllImport.CharSet = CharSet.Auto.
+
+If I run the sample with
+
+MONO_LOG_LEVEL="debug" MONO_LOG_MASK="dll" mono test.exe
+
+I can see how "FormatMessageA" is looked up. That's wrong.
+It should be "FormatMessageW", because I'm running XP.
+
+Marshal.SystemDefaultCharSize is 2, which is correct.
+
More information about the mono-bugs
mailing list