Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
460
Memory leak in XamDataTree (?)
posted

I have attached a very simple application that demonstrates the following situation:

- a node is added to the tree
- the node is removed from the tree
- a garbage collection is forced

Using the XamDataTree, the node is not garbage collected.
Using the WPF TreeView it is garbage collected as expected.
(I know this because a message box is triggered in the node's finalizer.)

Could you please look at the attached code and tell me what I have to do in order to have the removed node properly garbage collected.

WpfApplication7.zip