Исключение нехватки памяти в System.Windows.Media.RenderData.EnsureBuffer(Int32 cbRequiredSize в приложении WPFC#

Место общения программистов C#
Ответить
Anonymous
 Исключение нехватки памяти в System.Windows.Media.RenderData.EnsureBuffer(Int32 cbRequiredSize в приложении WPF

Сообщение Anonymous »

У меня возникает исключение нехватки памяти в рабочем приложении wpf.
Я не уверен, в чем может быть причина этого.
кто-нибудь поможет мне найти возможные причины этого
Я использую .net 4.7.2.
Вот трассировка стека:
An uncatched exception was thrown by application: System.OutOfMemoryException:

Exception of type 'System.OutOfMemoryException' was thrown.
at System.Windows.Media.RenderData.EnsureBuffer(Int32 cbRequiredSize)
at System.Windows.Media.RenderData.WriteDataRecord(MILCMD id, Byte* pbRecord, Int32 cbRecordSize)
at System.Windows.Media.RenderDataDrawingContext.Pop()
at MS.Internal.TextFormatting.DrawingState.Dispose()
at MS.Internal.TextFormatting.TextMetrics.FullTextLine.DrawTextLine(DrawingContext drawingContext, Point origin, MatrixTransform antiInversion)
at MS.Internal.TextFormatting.TextMetrics.FullTextLine.Draw(DrawingContext drawingContext, Point origin, InvertAxes inversion)
at MS.Internal.Text.Line.Render(DrawingContext ctx, Point lineOffset)
at System.Windows.Controls.TextBlock.OnRender(DrawingContext ctx)
at System.Windows.UIElement.Arrange(Rect finalRect)
at MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize)
at System.Windows.Controls.ContentPresenter.ArrangeOverride(Size arrangeSize)
at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
at System.Windows.UIElement.Arrange(Rect finalRect)
at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
at System.Windows.UIElement.Arrange(Rect finalRect)
at System.Windows.Controls.Border.ArrangeOverride(Size finalSize)
at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
at System.Windows.UIElement.Arrange(Rect finalRect)
at System.Windows.Controls.Border.ArrangeOverride(Size finalSize)
at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
at System.Windows.UIElement.Arrange(Rect finalRect)
at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)
at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
at System.Windows.UIElement.Arrange(Rect finalRect)
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)


Подробнее здесь: https://stackoverflow.com/questions/790 ... erint32-cb
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «C#»