Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / October 2004

Tip: Looking for answers? Try searching our database.

ArithmeticException in font initialisation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Romain TAILLANDIER - 01 Oct 2004 14:54 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.