C# Class Instantiation Overflow

Posted by Goober on Stack Overflow See other posts from Stack Overflow or by Goober
Published on 2010-03-24T08:26:35Z Indexed on 2010/03/24 8:33 UTC
Read the original article Hit count: 291

Filed under:
|
|
|

Scenario

I have a C# Win Forms App, where the Main Form contains a loop that creates 3000 Instances of another form (Form B). Inside Form B there are a large number of properties and fields and a bunch of methods that do a fair amount of processing.

Question

Will the creation of 3000 of these classes give me problems? I'm thinking along the lines of memory exceptions? I've had 1 or 2 already, and I've also had an exception that says something along the lines of "Something went bang and this is usually a sign of corrupt memory somewhere else".

Setup

I'm using a DevExpress Ribbon Form and I haven't implemented Dispose on anything....Do I need to?

Help greatly appreciated.

© Stack Overflow or respective owner

Related posts about c#

Related posts about win-forms