Posted 20 years ago
by painetraine

I had a user using an app that uses the TabStrip control, and they received the following error:
Top Level Exception
Type: System.ArithmeticException
Message: Overflow o underflow durante un'operazione aritmetica.
Source: System.Drawing
Stack Trace: at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
at System.Drawing.Font..ctor(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit)
at System.Drawing.Font..ctor(Font prototype, FontStyle newStyle)
at ActiproSoftware.TabStripPanel.DocumentListTabStripPanel.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Also, the location in the app where the tab strip was located there was simply a big red X in place of the tab strip. Since the only non .NET framework error is in the TabStripPanel code, is this something that might be an issue with the TabStrip control?
Thanks
Top Level Exception
Type: System.ArithmeticException
Message: Overflow o underflow durante un'operazione aritmetica.
Source: System.Drawing
Stack Trace: at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
at System.Drawing.Font..ctor(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit)
at System.Drawing.Font..ctor(Font prototype, FontStyle newStyle)
at ActiproSoftware.TabStripPanel.DocumentListTabStripPanel.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Also, the location in the app where the tab strip was located there was simply a big red X in place of the tab strip. Since the only non .NET framework error is in the TabStripPanel code, is this something that might be an issue with the TabStrip control?
Thanks