Question : "Out of memory" exception

I have a program in C# (written in VS2008) that creates and adds elements to a list of structures. The list can grow very large. When the program's memory usage reaches 250 Mbytes (looking in Task Manager), it throws an exception of type 'System.OutOfMemoryException'. This happens every time I run it. I have 2Gb of RAM and it is nowhere near being full when the exception is thrown. Is there some kind of memory allocation limit on the size of objects? Any other possible reasons for the exception? Thank you.

Answer : "Out of memory" exception

UPDATE Prod SET webpg2 = 'test.asp?Prodno=' + ProdNo
Random Solutions  
 
programming4us programming4us