ArithmeticException in font initialisation

  • Thread starter Thread starter Romain TAILLANDIER
  • Start date Start date
R

Romain TAILLANDIER

Hi group

I get an ArithmeticException in System.Drawing when it initialising some
font.
(see the Exception detail at the end).

it is not the first time i have this problem. I never found a solution. just
turn around it.

is somebody knows sth about that ?

thanks
ROM

System.ArithmeticException: Il y a eu un dépassement de capacité positif ou
néga
tif dans l'opération arithmétique.
(There was a capacity overflow positive or negative in the arithetic
operation, and sory for my english)
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
styl
e, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
at System.Windows.Forms.ControlPaint.FontInPoints(Font font)
at System.Windows.Forms.Control.get_DefaultFont()
at System.Windows.Forms.Control.get_Font()
at System.Windows.Forms.AxHost.QuickActivate()
at System.Windows.Forms.AxHost.ActivateAxControl()
at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
at System.Windows.Forms.AxHost.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.AxHost.EndInit()
at MAINtag.DllDeCouche.TagCouche.InitializeComponent() ...couche.cs: line
124
 
Hi Romain,
I get an ArithmeticException in System.Drawing when it initialising some
font.
(see the Exception detail at the end).

it is not the first time i have this problem. I never found a solution. just
turn around it.

Is the ActiveX-control you obviously embed written with Delphi?

bye
Rob
 
No.
One time i get the same error with no use any active X So i suppose that my
bug isn't linked ith the activeX
thanks.
 
Hi Romain,
No.
One time i get the same error with no use any active X So i suppose that my
bug isn't linked ith the activeX

The bug is induced by another application that doesn't restore
the floating point status registers of the coprocessor.
Code written with Delphi tend to have this bug.

It must be an application that installs hooks in every
process. Try to stop everything that you don't need
on the machine, like virus scanners, window managers, etc.

bye
Rob
 
Back
Top