Hi,
I think that the RadComboBox is causing a memory leak. I have a very simple test program: my root visual has a button and a content presenter (called Content). Once I hit the button, the following code is executed:
Once I click the button I would assume that the old datepicker which is then cut off form the visual tree would be garbage collected. But by constantly clicking the button the memory usage increases and even calls to GC.Collect() do not free a byte of memory.
The GCRoot output for any of the datepickers are as follows:
Maybe I miss-interprete something here. If so, I would be glad to hear how to free the allocated memory.
Thank you,
Tobias Richling.
I think that the RadComboBox is causing a memory leak. I have a very simple test program: my root visual has a button and a content presenter (called Content). Once I hit the button, the following code is executed:
content.Content = new RadDatePicker(); |
Once I click the button I would assume that the old datepicker which is then cut off form the visual tree would be garbage collected. But by constantly clicking the button the memory usage increases and even calls to GC.Collect() do not free a byte of memory.
The GCRoot output for any of the datepickers are as follows:
DOMAIN(032C54C0):HANDLE(Pinned):6a612f8:Root: 057b4260(System.Object[])-> |
047c8e48(System.Collections.Generic.Dictionary`2[[System.IntPtr, mscorlib],[System.Object, mscorlib]])-> |
057ddcc0(System.Collections.Generic.Dictionary`2+Entry[[System.IntPtr, mscorlib],[System.Object, mscorlib]][])-> |
04d57054(System.Windows.Controls.Grid)-> |
04d570b8(System.Collections.Generic.Dictionary`2[[MS.Internal.IManagedPeerBase, System.Windows],[System.Object, mscorlib]])-> |
04d57104(System.Collections.Generic.Dictionary`2+Entry[[MS.Internal.IManagedPeerBase, System.Windows],[System.Object, mscorlib]][])-> |
04d57150(Telerik.Windows.Controls.RadCalendar)-> |
04d57244(MS.Internal.CoreTypeEventHelper)-> |
04d57450(System.Collections.Generic.Dictionary`2[[System.Int32, mscorlib],[MS.Internal.CoreTypeEventHelper+EventAndDelegate, System.Windows]])-> |
04d5749c(System.Collections.Generic.Dictionary`2+Entry[[System.Int32, mscorlib],[MS.Internal.CoreTypeEventHelper+EventAndDelegate, System.Windows]][])-> |
04d5f250(MS.Internal.CoreTypeEventHelper+EventAndDelegate)-> |
04d5f218(System.Windows.Input.KeyEventHandler)-> |
04d50d28(Telerik.Windows.Controls.RadDatePicker) |
Maybe I miss-interprete something here. If so, I would be glad to hear how to free the allocated memory.
Thank you,
Tobias Richling.