Error while rendering the form



I have the issue with opening the Wisej Window that is rather complex (multiple tabs and more than 100 controls on it).

Out of the blue I am unable to open the form and I am getting the following error on controls that I am unable to find out which ones are:
Instances of this error (9)

1. Hide Call Stack

at Wisej.Base.TextUtils.MeasureText(String text, Font font, Size layoutArea)
at Wisej.Base.ControlBase.GetPreferredSizeCore(Size proposedSize)
at Wisej.Web.Label.GetPreferredSizeCore(Size proposedSize)
at Wisej.Base.ControlBase.GetPreferredSize(Size proposedSize)
at System.Windows.Forms.Layout.TableLayout.InflateRows(ContainerInfo containerInfo, Size proposedConstraints, Int32 expandLastElementWidth, Boolean measureOnly)
at System.Windows.Forms.Layout.TableLayout.ApplyStyles(ContainerInfo containerInfo, Size proposedConstraints, Boolean measureOnly)
at System.Windows.Forms.Layout.TableLayout.LayoutCore(IArrangedElement container, LayoutEventArgs args)
at System.Windows.Forms.Layout.LayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
at Wisej.Web.Layout.TableLayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)
at System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)
at Wisej.Base.ControlBase.OnLayout(LayoutEventArgs e)
at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
at System.Windows.Forms.Control.PerformLayout()
at Wisej.Base.ControlBase.PerformLayout()
I can deduct that this is Label inside Table Layout Control and that this is possibly error in Text, Font or Layout Area

is there any way to see exactly which control is in question.

Suddenly I have 9 of these errors listed

  • Dino Novak
    Found the reason for error. Looks like for some reason Theme file became corrupted. Restored from backup and all works now. VS crashed in the mean time so I suspect this can be cause of the error Regards, D
  • You must to post comments

Hi Dino,

what kind of exception are you receiving ? NullReference ? Is it at runtime AND/OR at design time ?
Are you using a custom theme or a custom font ?

Thanks in advance !

Best regards

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.