Why so much memory in Silverlight?
Data:
I am having many check boxes and others on USER INTERFACE sometimes. As matter of course, I am removing check boxes and other controls from visuals, but the memory usage of Silverlight always increases; it never decreases.
How do I ensure memory is released?
Is this a problem with garbage collection? How do I find root of all remaining objects with
no reference that are not yet collected?
I can provide more data if it is needed.
The memory management engine that Silverlight uses is similar to the one that the CLR uses for WPF and other traditional .NET applications. It is based on garbage collection and if you maintain references to objects, even accidentally, that prevents them from being garbage collected, then memory consumption will continue to increase.
If you have this problem in your Silverlight application you can look around for leaks or you can try to use tools to look for leaks and to find where most of the memory is being allocated. Probably the quickest way is with a memory profiler. Unfortunately there are not a lot of memory profilers that work with Silverlight but the ANTS profiler, which has a free trial version, supposedly does: