TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Jason Nesbitt
NA
13
13.3k
Dataset copy() memory leak
May 11 2011 6:26 AM
Hi
I have an application that needs to frequently backup a dataset and revert to that backup if the users decides to cancel an action.
There is a global dataset created at the top of the class:
DataSet database = null;
Every time a form is opened the main dataset is copied into the created variable:
database = AppModel.Instance.Data.Data.Copy();
The problem is that every time the form is opened the memory increases by quite a lot and is never released.
I've tried disposing the database variable after it's been used but the memory still remains high - This has left me to believe that the DataSet.Copy() method allocates to new memory every time.
Any suggestions to free up the memory would be greatly appreciated.
Regards,
Jason
Reply
Answers (
5
)
User Priviliges Help
How to fill combobox with text file item!