StringBuilder out of memory
I'm trying to crash-test my parser with the following string:
var theWholeUTF8 = new StringBuilder();
for (char code = Char.MinValue; code <= Char.MaxValue; code++)
{
theWholeUTF8.Append(code);
}
However, the test crashes itself while building the string and throws
OutOfMemoryException. What am I missing?
No comments:
Post a Comment