Home All Groups Group Topic Archive Search About

c# string size limit? length of string limit?

Author
19 Apr 2006 12:38 AM
Daniel
c# string size limit? length of string limit?

Author
19 Apr 2006 3:53 AM
Carl Daniel [VC++ MVP]
Daniel wrote:
> c# string size limit? length of string limit?

All allocations in .NET are limited to 4GB in size, even on 64 bit
platforms.  .NET strings store 16-bit Unicode (UCS-2) characters, so that's
2^31 characters, more or less.  Of course, you'll probably run out of memory
long before then.

-cd

AddThis Social Bookmark Button