[Mono-bugs] [Bug 79117][Nor] Changed - [PATCH] Marshal.StringToHGlobalAuto & PtrToStringAuto not working as expected

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Aug 23 12:30:40 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 gert.driesen at pandora.be.

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

--- shadow/79117	2006-08-23 11:37:22.000000000 -0400
+++ shadow/79117.tmp.20176	2006-08-23 12:30:40.000000000 -0400
@@ -238,6 +238,25 @@
 CharSet.Auto,    ExactSpelling = true -> FormatMessageW
 
 The latter doesn't make much sense, but it works, though.
 
 I don't see a bug here.
 
+
+------- Additional Comments From gert.driesen at pandora.be  2006-08-23 12:30 -------
+Robert, I thought the mangling issue was there when exactspelling was 
+false (not true). You probably just made a typo, as the results you 
+get match those you get when ExactSpelling is false. With 
+ExactSpelling set to true you would have gotten an 
+EntryPointNotFoundException in all three cases (on both Mono and 
+MS.NET).
+
+You would not have seen the "problem" I described when pinvoking 
+FormatMessage, as there's no plain FormatMessage entrypoint (it has 
+only Ansi and Unicode versions).
+
+However, after looking close at the MS docs I noticed that there was 
+indeed a difference between name mangling for Unicode and Ansi which 
+matches the Mono behavior .... For Ansi, it should first search for 
+the unmangled name, while for Unicode it should first probe for the 
+mangled name ... Sorry for the bogus report ...
+


More information about the mono-bugs mailing list