ArgumentOutOfRangeException in RibbonWindowTitleBarText.DrawText

Ribbon for WPF Forum

The latest build of this product (v2019.1 build 0683) was released 2 months ago, which was before this thread was created.
Posted 28 days 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 27 days 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 27 days ago by Valéry Sablonnière - Staubli
Avatar

That's good news, thank you.

I hope we will get this release soon.

Best regards,

Add Comment

Please log in to a validated account to post comments.