[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 210
  • Last Modified:

how much can an array list hold

What is the theoretical limit of an array list?  Is it a function of system memory, or is it restricted by .NET?


In other words, when will the program crash due to memory consumption?


private void Form1_Load(object sender, System.EventArgs e)
{            
      bool keepGoing = true;
      string newStr = "Microsoft";
      do
      {
            arList.Add(newStr);
      }
      while(keepGoing == true);
}


0
Tom Knowlton
Asked:
Tom Knowlton
2 Solutions
 
gregoryyoungCommented:
The limit would be an integer count etc as posted ... but I believe your performance would degrade to such a point that the application would either

a) run out of memory
b) degrade in performance so bad it was useless

before this ever occurred.

Greg
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now