1

I've been reading about the ~2GB size limit of objects in .NET, and sadly feel that I must be missing something. I believe I have created Lists that are larger than 2GBs, and in so far as a List is an object...I am confused. Could someone explain to me what they mean by this limitation?

Yuck
  • 49,664
  • 13
  • 105
  • 135
user978122
  • 5,531
  • 7
  • 33
  • 41

1 Answers1

2

The total space taken by all of your dereferenced objects may have exceeded that. But the space requirement for the list and its internal pointers to each object it contains were less than 2 GB.

To expound upon this general concept - the pointers themselves are relatively small in terms of storage requirement. The objects to which they point can individually be very large (or very numerous).

Yuck
  • 49,664
  • 13
  • 105
  • 135