Exception:没有足够的内存继续执行程序。

报错信息 1
OutOfMemoryException: 没有足够的内存继续执行程序。
StackTrace:
   在 System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
   在 System.Windows.Media.MediaContext.CompleteRender()
   在 System.Windows.Interop.HwndTarget.OnResize()
   在 System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   在 System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   在 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)

版本:1.43.29 2026-05-12 17:18 Microsoft Windows NT 10.0.19045.0
版本:1.43.29 2026-05-10 17:39 Microsoft Windows NT 10.0.22631.0
版本:1.43.29 2026-05-09 17:18 Microsoft Windows NT 10.0.19045.0
版本:1.43.29 2026-05-08 12:06 Microsoft Windows NT 10.0.19045.0
版本:1.43.29 2026-05-07 15:01 Microsoft Windows NT 10.0.19045.0
版本:1.43.29 2026-05-07 12:35 Microsoft Windows NT 10.0.26100.0
版本:1.43.29 2026-05-06 12:45 Microsoft Windows NT 10.0.19045.0
版本:1.43.29 2026-05-05 18:43 Microsoft Windows NT 10.0.19045.0
版本:1.43.29 2026-05-05 11:03 Microsoft Windows NT 10.0.26200.0
版本:1.43.29 2026-05-04 15:20 Microsoft Windows NT 10.0.19045.0
版本:1.43.29 2026-05-04 14:55 Microsoft Windows NT 10.0.19045.0
版本:1.43.29 2026-05-03 13:44 Microsoft Windows NT 10.0.26200.0
版本:1.43.29 2026-05-02 15:31 Microsoft Windows NT 10.0.26200.0
版本:1.43.29 2026-04-29 16:36 Microsoft Windows NT 10.0.19044.0
版本:1.43.29 2026-04-29 09:33 Microsoft Windows NT 10.0.26200.0
版本:1.43.29 2026-04-27 01:01 Microsoft Windows NT 10.0.22621.0
版本:1.43.29 2026-04-26 20:31 Microsoft Windows NT 10.0.26200.0
版本:1.43.29 2026-04-24 20:31 Microsoft Windows NT 10.0.22631.0
版本:1.43.29 2026-04-23 00:41 Microsoft Windows NT 10.0.18363.0
版本:1.43.29 2026-04-22 14:22 Microsoft Windows NT 10.0.22631.0
版本:1.43.29 2026-04-21 14:46 Microsoft Windows NT 10.0.26100.0
版本:1.43.29 2026-04-21 14:46 Microsoft Windows NT 10.0.26100.0
版本:1.43.29 2026-04-21 00:21 Microsoft Windows NT 10.0.19045.0
版本:1.43.29 2026-04-20 19:56 Microsoft Windows NT 10.0.22631.0
版本:1.43.29 2026-04-20 16:47 Microsoft Windows NT 10.0.22000.0
版本:1.43.29 2026-04-20 16:18 Microsoft Windows NT 10.0.22631.0
版本:1.43.29 2026-04-20 15:39 Microsoft Windows NT 10.0.26200.0
版本:1.43.29 2026-04-19 09:45 Microsoft Windows NT 10.0.26200.0
版本:1.43.29 2026-04-17 18:38 Microsoft Windows NT 10.0.26200.0
版本:1.43.29 2026-04-17 18:38 Microsoft Windows NT 10.0.26200.0
版本:1.43.29 2026-04-17 15:28 Microsoft Windows NT 10.0.19045.0
版本:1.43.29 2026-04-15 18:50 Microsoft Windows NT 10.0.26200.0
版本:1.43.29 2026-04-15 09:21 Microsoft Windows NT 10.0.26200.0
版本:1.43.29 2026-04-14 14:04 Microsoft Windows NT 10.0.26200.0
版本:1.43.29 2026-04-13 20:37 Microsoft Windows NT 10.0.22631.0
版本:1.43.29 2026-04-13 17:45 Microsoft Windows NT 10.0.22631.0
版本:1.43.29 2026-04-13 15:30 Microsoft Windows NT 10.0.26200.0
报错信息 2
OutOfMemoryException: 没有足够的内存继续执行程序。
StackTrace:
   在 System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   在 System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo)
   在 MS.Internal.Text.TextInterface.Native.Util.ConvertHresultToException(Int32 hr)
   在 MS.Internal.Text.TextInterface.Font.CreateFontFace()
   在 MS.Internal.Text.TextInterface.Font.AddFontFaceToCache()
   在 MS.Internal.Text.TextInterface.Font.GetFontFace()
   在 MS.Internal.FontCache.FontFaceLayoutInfo.IntMap.TryGetValues(UInt32* pKeys, UInt32 characterCount, UInt16* pIndices)
   在 System.Windows.Media.GlyphTypeface.GetGlyphMetricsAndIndicesOptimized(UInt32* pCodepoints, Int32 characterCount, Double emSize, Single pixelsPerDip, UInt16[] glyphIndices, GlyphMetrics[] glyphMetrics, TextFormattingMode textFormattingMode, Boolean isSideways)
   在 System.Windows.Media.GlyphTypeface.GetGlyphMetricsOptimized(CharacterBufferRange characters, Double emSize, Single pixelsPerDip, UInt16[] glyphIndices, GlyphMetrics[] glyphMetrics, TextFormattingMode textFormattingMode, Boolean isSideways)
   在 System.Windows.Media.Typeface.CheckFastPathNominalGlyphs(CharacterBufferRange charBufferRange, Double emSize, Single pixelsPerDip, Double scalingFactor, Double widthMax, Boolean keepAWord, Boolean numberSubstitution, CultureInfo cultureInfo, TextFormattingMode textFormattingMode, Boolean isSideways, Boolean breakOnTabs, Int32& stringLengthFit)
   在 MS.Internal.TextFormatting.SimpleRun.CreateSimpleTextRun(CharacterBufferRange charBufferRange, TextRun textRun, TextFormatterImp formatter, Int32 widthLeft, Boolean emergencyWrap, Boolean breakOnTabs, Double pixelsPerDip)
   在 MS.Internal.TextFormatting.SimpleRun.Create(FormatSettings settings, CharacterBufferRange charString, TextRun textRun, Int32 cp, Int32 cpFirst, Int32 runLength, Int32 widthLeft, Int32 idealRunOffsetUnRounded, Double pixelsPerDip)
   在 MS.Internal.TextFormatting.SimpleTextLine.Create(FormatSettings settings, Int32 cpFirst, Int32 paragraphWidth, Double pixelsPerDip)
   在 MS.Internal.TextFormatting.TextFormatterImp.FormatLineInternal(TextSource textSource, Int32 firstCharIndex, Int32 lineLength, Double paragraphWidth, TextParagraphProperties paragraphProperties, TextLineBreak previousLineBreak, TextRunCache textRunCache)
   在 MS.Internal.TextFormatting.TextFormatterImp.FormatLine(TextSource textSource, Int32 firstCharIndex, Double paragraphWidth, TextParagraphProperties paragraphProperties, TextLineBreak previousLineBreak, TextRunCache textRunCache)
   在 System.Windows.Controls.TextBlock.MeasureOverride(Size constraint)
   在 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   在 System.Windows.UIElement.Measure(Size availableSize)
   在 System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   在 System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
   在 System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   在 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   在 System.Windows.UIElement.Measure(Size availableSize)
   在 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.RenderMessageHandler(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)

版本:1.43.29 2026-04-21 13:53 Microsoft Windows NT 10.0.26200.0
报错信息 3
OutOfMemoryException: 没有足够的内存继续执行程序。
StackTrace:
   在 System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
   在 System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable`1 channelSet)
   在 System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam)
   在 System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   在 System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   在 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)

版本:1.43.29 2026-04-14 16:13 Microsoft Windows NT 10.0.19045.0