- I load some data from SQL server into a
DataSet. - When I close the form my
DataSetis not releasing memory!
How Can I Fix this problem?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is hard to answer your question as you did not post your code. Perhaps, this memory leak is caused by the fact that this dataSet is referenced on another form or there are event handlers…. To find memory leaks, I would suggest that you try the .NET Memory Profiler. Finally, to explicitly clear the DataSet, use its Dispose method.