I think I have detected a new problem with memory leak in Silverlight 4. Now, this new problem has been detected in
Thumb control.
I have created a new Silverlight 4 application with three pages:
- MainPage: With a content control, and three buttons. The first button load the Page1 in the content control. The second button load the Page 2 in the content control. And the last button will call ten times to GC.Collect() and GC.WaitForPendingFinalizers().
- Page1: Empty page.
- Page2:
if ((newMarginLeft >= 0) && (this.LayoutRoot.ActualWidth > (newMarginLeft + myThumbStart.ActualWidth))) { myThumbStart.Margin = new Thickness(newMarginLeft, 0, 0, 0); } }
}
If I load the Page2 and I move the Thumb control doing drag with mouse from left side to right side several times, when I load the Page1 and press GC button, the Page2 (and all its content) is not removed from memory. I checked it with WinDbg.
cybtow
Member
9 Points
15 Posts
Memory leak problem in Thumb control
May 10, 2010 10:09 AM | LINK
I think I have detected a new problem with memory leak in Silverlight 4. Now, this new problem has been detected in Thumb control.
I have created a new Silverlight 4 application with three pages:
- MainPage: With a content control, and three buttons. The first button load the Page1 in the content control. The second button load the Page 2 in the content control. And the last button will call ten times to GC.Collect() and GC.WaitForPendingFinalizers().
- Page1: Empty page.
- Page2:
XAML:
Code behind:
If I load the Page2 and I move the Thumb control doing drag with mouse from left side to right side several times, when I load the Page1 and press GC button, the Page2 (and all its content) is not removed from memory. I checked it with WinDbg.
Can anybody test this problem?
Thumb memory leak silverlight 4
MaxMustermann
Member
2 Points
3 Posts
Re: Memory leak problem in Thumb control
May 11, 2010 02:00 PM | LINK
Its exactly the same bug which I already posted here. It affects nearly every drag & drop operation. Hope we get an answer this time...