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
Sameer Adhwaryu
1.6k
105
3.7k
How to Free memory after a form is closed (C# Win Forms)
Oct 30 2020 1:40 AM
Hello,
I am building a Kiosk type of application where the user Navigates using Next and Previous buttons. Many child forms (form objects) are created everytime the user presses Next/Previous buttons. Before opening another form, I close / dispose the present form. I am also calling the GC.collect() method. But the RAM usage keeps on increasing.
As the application runs 24x7, over a period of time the application becomes sluggish. At the start of the application it consumes around 20MB, but within 24 hrs, the RAM usage shoots up to 300 MB.
Note : The forms are opened using ShowDialog method.
What is the best way to resolve these issues ??
Thanks
Reply
Answers (
3
)
how to validate textbox that accepts only integers
Add multiple rectangles to maximum size and location of panel in