[Mono-bugs] [Bug 79106][Nor] Changed - Default-constructed StringBuilder unusable with P/Invoke

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Sep 3 08:46:12 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 vargaz at gmail.com.

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

--- shadow/79106	2006-08-20 19:56:32.000000000 -0400
+++ shadow/79106.tmp.14218	2006-09-03 08:46:12.000000000 -0400
@@ -78,6 +78,17 @@
 do to check this, since the default-constructed StringBuilder returns
 a .Capacity of 16, so there's no way I know of to distinguish between
 a default-constructed and a non-default-constructed StringBuilder
 instance.)
 
 --> System.Text.StringBuilder bug.
+
+------- Additional Comments From vargaz at gmail.com  2006-09-03 08:46 -------
+According to the MSDN docs, the user is expected to allocate a
+StringBuilder big enough to hold the result of the pinvoke call:
+
+http://msdn2.microsoft.com/en-us/library/s9ts558h.aspx
+
+So I don't think this is a bug.
+
+
+


More information about the mono-bugs mailing list