none
System.ArgumentException: Parameter is not valid. RRS feed

  • Question

  • Hi there,

    I get randomly this exception. Not sure if this has to do with syncfusion or native .net controls issues. It pops up with the window and the user gets stuck. Would be great help if any solution offered here and also can we also swallow and not show message for such issues though it is not a good practice. Having issues logged helps for better user satisfaction.

    System.ArgumentException: Parameter is not valid.
       at System.Drawing.Graphics.MeasureCharacterRanges(String text, Font font, RectangleF layoutRect, StringFormat stringFormat)
       at Syncfusion.Windows.Forms.Tools.DTField.MeasureString(Graphics graphics, String text, Font font)
       at Syncfusion.Windows.Forms.Tools.DateTimePickerAdv.RecalculateMaxWidths()
       at Syncfusion.Windows.Forms.Tools.DateTimePickerAdv.OnHandleCreated(EventArgs e)
       at System.Windows.Forms.Control.WmCreate(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at Syncfusion.Windows.Forms.Tools.GradientPanel.WndProc(Message& m)
       at Syncfusion.Windows.Forms.Tools.DateTimePickerAdv.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    Regards,

    GB


    GB

    Wednesday, August 2, 2017 12:34 PM

All replies

  • Hi gdhar,

    Based on exception you provide, we can not determine the reason for these exception, can you provide some code that can reproduce this issue and point out where you encounter these exception? It is very helpful to us to analyze this issue.

    Thanks for your understanding.

    Best Regards,

    Cherry


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, August 3, 2017 5:36 AM
    Moderator
  • Hi GB,

    It seems there is a problem in one of your Suncfusion controls. 

    Probably is the best approach to contact their forum.

    https://www.syncfusion.com/forums


    Success
    Cor

    Thursday, August 3, 2017 5:50 AM