StringBuilder gets OutOfMemory

  • Thread starter Thread starter Arnd Iffland
  • Start date Start date
A

Arnd Iffland

Hi,

i use a StringBuilder for a large string.

After instantiation, MaxCapacity is 2.147.483.647 which is fairly large
enough for my purpose.

During my procedure, i get a System.OutOfMemoryException at
System.GetStringForStringBuilder.
The Stringbuilder has a length of 17.825.779 and a capacity of only
17.825.792 at this moment. There is no other StringBuilder involved at
this moment.

I use WebDeveloper Express with C# and .Net 2.0.50727.42

Why can't i use the whole capacity?

Regards,

Arnd

--
 
Back
Top