Click here to Skip to main content
16,017,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys hope someone can be of assistance...

I have a program that instantiate a class which returns a control with multiple controls on.

The problem that I have is that when I dispose and call The GC.Collect() my memory in Task Manager doesn't drop. This is a problem because my application's memory gets huge and the computer starts to lag. Can anyone please assist??


Thanks
Posted

Memory growth and garbage collection not working indicates you are keeping the object references alive. This can be hard to find, but most likely the form using your controls are being kept alive and not closing.
 
Share this answer
 
But the form
that runs needs to be kept alive otherwise the program will need to restarted which I dont want.
 
Share this answer
 
v2
Comments
Gigantour 15-Sep-11 10:24am    
Memory growth and garbage collection not working indicates you are keeping the object references alive. This can be hard to find, but most likely the form using your controls are being kept alive and not closing.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900