Exception:“System.Windows.Automation.ControlType”的类型初始值设定项引发异常。引发类型为“System.OutOfMemoryException”的异常。

报错信息 1
TypeInitializationException: “System.Windows.Automation.ControlType”的类型初始值设定项引发异常。
   在 System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   在 System.Windows.ContextLayoutManager.fireAutomationEvents()
   在 System.Windows.ContextLayoutManager.UpdateLayout()
   在 System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   在 System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   在 System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   在 System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)


OutOfMemoryException: 引发类型为“System.OutOfMemoryException”的异常。
   在 System.Windows.Automation.ControlType..cctor()


版本:1.39.39 2026-03-18 20:59 Microsoft Windows NT 10.0.19045.0