I am fighting exhausted resources in a large application with many
forms. It manifests itself by EVENTUALLY not being able to load an
ImageList. In researching this I see advice in previous postings to call
Dispose on a form when finished with the object, after a ShowDialog. It
is suggested this is necessary to avoid GDI resource leaks.
My question is, what about when you open the form non-modally with Show?
Will the form do its own Dispose, or am I obligated to find a way for
this to happen? If so, can someone suggest a strategy for managing this?
- Lee