I have a WPF window containing a Datagrid. Window starts in full-screen and the datagrid is populated. Then I Restore the window down and suddenly the process starts to require memory until it crashes. Taking snapshots of the memory before and after the resizing, I see that the memory is required by an increasingly number of object of type DataGridCellItemAutomationPeer and DataGridItemAutomationPeer.
User Gdir pointed out that I already reported a similar issue (WPF System.OutOfMemoryException System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree ), but it seems not to be the same case.
Weird enough, it seems to happen only on some machines, while I have at least one machine on which the problem does not arise.
digging deeper, it looks like method
protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer()
is called only on some machines. What is the discriminant that triggers the call to that method?
Any hint to guide me to solve the problem?
Thanks!