ArithmeticException in font initialisation

  • Thread starter Romain TAILLANDIER
  • 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
 
R

Robert Jordan

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
 
R

Romain TAILLANDIER

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.
 
R

Robert Jordan

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top