ArrayList turns null

I'm working on a Web app using ASP.NET. I have a class called "Sistema" that uses the Singleton pattern.When the instance of Sistema is created, the database connection is opened and a process runs that loads some static information into more than one ArrayList for later use. \[code\]private ArrayList list1;private ArrayList list2;private static Sistema instance;private Sistema(){ OpenDataBase(); list1 = LoadStaticInformationFromDataBase(); list2 = LoadOtherStaticInformationFromDataBase();}public static Sistema GetInstance(){ if (instance == null) { instance = new Sistema(); } return instance;}\[/code\]Throughout the day, new objects are added to each ArrayList. During the last couple of days, it has occurred that suddenly one of these ArrayList becomes null, and as consequence, the whole site stops working.I haven't been able to determine why this becomes null. Can it be that the ArrayList reaches the maximum amount? For example, right now it has more than 150.000 objects in it. Inside the Global.asax file, in the Application_Error method, I've added a piece of code that stores in a txt file as a log every error. However, there's no error at that time. Any suggestions to why is this happening?
 
Back
Top