Should I be creating appdomains for collection objects associated with a form that are recycled on the form.

In the 26 years I have been programming, I have often created a data collection, examined it, and then used it to create an output file, often to be batch loaded into another application.  In the realm of C#, which I recently have begun learning, I have looked to handle all of these elements, which may include datatables and lists as well as individual attributes reflecting the states of the collection and the parameters used in populating the data collection.  The scope of the collection is within the form, which provides for setting the parameters as well as reporting attributes of the collection.  In one such application, the parameters are a date range and the form displays counts of the various record collections as well as datagrids of what was collected.  The user then presses the make csv file button to make the csv file and generate a report of what was on the form.  I would like to destruct the data collection after I generate the csv file and reports so that a new set of parameters can be entered and the process created.   Should I be creating an appdomain for the data collection?  I have attached screen shots of the form in question:
Screen-shots.docx
LVL 1
sjlevine34Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ste5anSenior DeveloperCommented:
Destruction is handled by the garbage collector (GC). When your object references go out of scope, GC will dispose those objects. In your case you may force GC to do this by calling the Collect() method.

See also the example here.
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.