ArgumentOutOfRangeException in RibbonWindowTitleBarText.DrawText

Ribbon for WPF Forum

Posted 4 years ago by Valéry Sablonnière - Staubli
Version: 18.1.0671
Platform: .NET 4.6
Environment: Windows 10 (64-bit)
Avatar

Hi,

One of our customer had this issue:

System.ArgumentOutOfRangeException: Der Parameter muss größer oder gleich null sein.
Parametername: value
   bei System.Windows.Media.FormattedText.set_MaxTextWidth(Double value)
   bei ActiproSoftware.Windows.Controls.Ribbon.Controls.Primitives.RibbonWindowTitleBarText.DrawText(DrawingContext drawingContext)
   bei ActiproSoftware.Windows.Controls.Ribbon.Controls.Primitives.RibbonWindowTitleBarText.OnRender(DrawingContext drawingContext)
   bei System.Windows.UIElement.Arrange(Rect finalRect)
   bei System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
   bei System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
   bei System.Windows.UIElement.Arrange(Rect finalRect)
   bei System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
   bei System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
   bei System.Windows.UIElement.Arrange(Rect finalRect)
   bei System.Windows.Controls.Decorator.ArrangeOverride(Size arrangeSize)
   bei System.Windows.Documents.AdornerDecorator.ArrangeOverride(Size finalSize)
   bei System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
   bei System.Windows.UIElement.Arrange(Rect finalRect)
   bei System.Windows.Window.ArrangeOverride(Size arrangeBounds)
   bei ActiproSoftware.Windows.Controls.Ribbon.RibbonWindow.ArrangeOverride(Size arrangeBounds)
   bei System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
   bei System.Windows.UIElement.Arrange(Rect finalRect)
   bei System.Windows.Interop.HwndSource.Process_WM_SIZE(UIElement rootUIElement, IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam)
   bei System.Windows.Interop.HwndSource.LayoutFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

He minimized our main window, he docked Notepad on the right side of his screen, then he restored our main window and when he gave focus to it, it crashed with this callstack.

Comments (2)

Answer - Posted 4 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

Thank you for reporting this.  I believe we found the line where this happened and added a guard against it for the next maintenance release.


Actipro Software Support

Posted 4 years ago by Valéry Sablonnière - Staubli
Avatar

That's good news, thank you.

I hope we will get this release soon.

Best regards,

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.