This question is locked. New answers and comments are not allowed.
Hi Telerik,
I work on memory leaks into my application which takes a lot of memory.Working with WinDbg, I found curious references with keep my objects into memory.
Do you have an idea ?
Here, I list my object into the namespace to found my window which is not freed whereas it is closed :
Then, I list the method table of the StandardEditChildWindow :
and finally get the root details for the instance :
The instance seems to be alive due to the automation peer .
Can you help me ?
Raphael
I work on memory leaks into my application which takes a lot of memory.Working with WinDbg, I found curious references with keep my objects into memory.
Do you have an idea ?
Here, I list my object into the namespace to found my window which is not freed whereas it is closed :
0:026> !dumpheap -stat -type [Company].Light.Views.StandardsStatistics: MT Count TotalSize Class Name0ee03630 1 16 [Company].Light.Views.Standards.ScorecardEditTemplateSelector0ee03558 1 20 [Company].Light.Views.Standards.ScorecardDataTemplateSelector0ee047e0 1 32 [Company].Light.Views.Standards.ApplicabilityDataTemplateSelector0ee01c34 1 104 [Company]..Views.Standards.StandardTab0ee0289c 1 124 [Company].Light.Views.Standards.StandardApplicabilities0e0eb734 1 124 [Company].Light.Views.Standards.StandardsGridView0ee0214c 1 152 [Company].Light.Views.Standards.StandardDetails0ee02590 1 168 [Company].Light.Views.Standards.StandardChaptersAndRequirements0ee01748 1 216 [Company].Light.Views.Standards.StandardEditChildWindowTotal 9 objectsFragmented blocks larger than 0.5 MB: Addr Size Followed by1400577c 2.8MB 142d4408 System.Nullable`1[[System.Boolean, mscorlib]]Then, I list the method table of the StandardEditChildWindow :
0:026> !dumpheap -MT 0ee01748 Address MT Size08dcaefc 0ee01748 216 Statistics: MT Count TotalSize Class Name0ee01748 1 216 [Company].Light.Views.Standards.StandardEditChildWindowTotal 1 objectsFragmented blocks larger than 0.5 MB: Addr Size Followed by1400577c 2.8MB 142d4408 System.Nullable`1[[System.Boolean, mscorlib]]and finally get the root details for the instance :
0:026> !gcroot 08dcaefcNote: Roots found on stacks may be false positives. Run "!help gcroot" formore info.Scan Thread 0 OSTHread 1cbcScan Thread 11 OSTHread 1eacScan Thread 12 OSTHread 18e4Scan Thread 19 OSTHread 18bcDOMAIN(0516DB08):HANDLE(Pinned):3e312f8:Root: 09ae4220(System.Object[])-> 08afaefc(System.Collections.Generic.Dictionary`2[[System.IntPtr, mscorlib],[System.Object, mscorlib]])-> 09b10600(System.Collections.Generic.Dictionary`2+Entry[[System.IntPtr, mscorlib],[System.Object, mscorlib]][])-> 08f4eec8(MS.Internal.ManagedObjectReference)-> 08f435a4(Telerik.Windows.Controls.RadTabControlAutomationPeer)-> 08f43cc4(System.Collections.Generic.List`1[[System.Collections.Generic.KeyValuePair`2[[System.Object, mscorlib],[System.Windows.Automation.Peers.ItemAutomationPeer, System.Windows]], mscorlib]])-> 08f43cdc(System.Collections.Generic.KeyValuePair`2[[System.Object, mscorlib],[System.Windows.Automation.Peers.ItemAutomationPeer, System.Windows]][])-> 08dd64a4(Telerik.Windows.Controls.RadTabItem)-> 08dd768c([Company].Light.Views.Standards.StandardDetails)-> 08de6e24(System.Windows.Controls.TextBlock)-> 08de6f9c(System.Windows.DataContextChangedEventHandler)-> 08de6f34(System.Windows.Data.BindingExpression)-> 08e1b10c([Company].ModelView.ViewModel.Standards.StandardEditViewModel)-> 08e4d0ec(System.EventHandler`1[[System.EventArgs, mscorlib]])-> 08dcaefc([Company].Light.Views.Standards.StandardEditChildWindow)The instance seems to be alive due to the automation peer .
Can you help me ?
Raphael