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
Robert Jordan - 01 Oct 2004 15:02 GMT
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
Romain TAILLANDIER - 01 Oct 2004 16:06 GMT
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,
>
[quoted text clipped - 9 lines]
> bye
> Rob
Robert Jordan - 01 Oct 2004 16:59 GMT
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