C# WPF System.OutOfMemoryException System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree
我已经在.NETFramework 4.5.1上构建了一个WPF桌面应用程序。它“通常”工作正常,但在某些机器上,在运行时显示WPF datagrid时会出现System.OutOfMemoryException 堆栈跟踪报告:C# WPF System.OutOfMemoryException System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree,c#,.net,wpf,out-of-memory,automationpeer,C#,.net,Wpf,Out Of Memory,Automationpeer,我已经在.NETFramework 4.5.1上构建了一个WPF桌面应用程序。它“通常”工作正常,但在某些机器上,在运行时显示WPF datagrid时会出现System.OutOfMemoryException 堆栈跟踪报告: An error of type System.OutOfMemoryException occurred. in System.Windows.Controls.ItemContainerGenerator.ContainerFromItem(Objec
An error of type System.OutOfMemoryException occurred.
in System.Windows.Controls.ItemContainerGenerator.ContainerFromItem(Object item)
in Microsoft.Windows.Controls.DataGrid.TryFindCell(Object item, DataGridColumn column)
in Microsoft.Windows.Automation.Peers.DataGridCellItemAutomationPeer.get_OwningCellPeer()
in Microsoft.Windows.Automation.Peers.DataGridCellItemAutomationPeer.IsEnabledCore()
in System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
in System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
in System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
in System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
in System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
in System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
in System.Windows.ContextLayoutManager.fireAutomationEvents()
in System.Windows.ContextLayoutManager.UpdateLayout()
in System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
in System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
in System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
in System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
in System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
in System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
in MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
非工作机器是32位、Windows7、2GB内存、.NETFramework 4.5.1
我必须说datagrid只显示很少的行。
我一直在网上寻找类似的错误,但我找不到任何合适的解决方案
有什么建议吗
谢谢 问题原来与运行帐户缺少某些特权有关 一旦用户通过启动可执行文件 右键单击,以管理员身份运行 问题消失了