Questions tagged [large-object-heap]

The Large Object Heap (LOH) is a special type of managed heap for the automatic memory management in .NET Framework.

The Large Object Heap (LOH) is intended for storing large objects. The large objects is an object, which size is 85000 bytes or more. These features are most significant, when working with large objects and LOH:

  • Large objects are always considered part of generation 2.
  • Large objects are never compacted.
92 questions
-3
votes
1 answer

C# Huge object initializer throws Stack Overflow error

I need to build an object which consists of almost 20000 nested objects (in multiple levels). Each object is a simple database entity with 1-5 fields or a list of entities. I am using inline object initializer to initiate my root object. new…
Ehsan
  • 357
  • 5
  • 22
-5
votes
1 answer

Is Large Objects heap collected

I cant find information about Large Objects Heap. Everywhere is wrote that it isn't fragmented. But I heard that isn't collected. I cant find some article which provide me this information. So, is LOH collected (dead instances removed from memory)…
Jakub Čermoch
  • 431
  • 1
  • 9
  • 20
1 2 3 4 5 6
7