C# Class Instantiation Overflow
- by Goober
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.