Hello Everyone,
I just want to get more understanding about Silverlight.
I notice that if I created a Control object in C#, the memory usage is not increased much in the application (by reading the Memory (Private Working Set) in Task Manager).
But when I add the Control into the Silverlight layout to display the control, the memory usage will suddenly jump from like 100MB to 190MB.
So questions: 1) Is this because the Silverlight Engine render the User Controls in IExplorer like rendering an image? Or rather, what used the memory?
2) And another thing is, if I just remove the Control from the layout or set it to invisable (by using visability) to the user, will the memory eventually be free up by Garbage Collector? And I don't mean will the control object be collected by Garbage Collector, I mean the memory that in question 1.
I know the memory leak issues in Silverlight haven't fixed completely, so when I test it myself I couldn't know if this is because the memory leak or just the Garbage Collector won't free up the memory...
Thanks.