Arithmetic overflow exception from Windows .NET Framework

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Jack
Newbie
Newbie
Posts: 2
Joined: Fri Nov 15, 2002 12:00 am
Location: USA

Arithmetic overflow exception from Windows .NET Framework

Post by Jack » Thu Jun 16, 2005 2:07 pm

I have been having a consistent problem in my application which mixes a number of different thchnologies, older COM components with .NET C# assemblies, and TeeChart 5 and TeeChart for .NET in the same application. Under many circumstances when a new chart is instantiated I get an arithmetic overflow or underflow exception thrown from within the .NET Framework font processing. Have you seen this behavior? Do you know what library incompatability I might be encountering?

Thanks

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Jun 20, 2005 11:14 am

Hi Jack,

Where does the error come from, TeeChart Pro ActiveX o Microsoft .NET Framework? Have you debugged your application and been able to guess that?
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Jack
Newbie
Newbie
Posts: 2
Joined: Fri Nov 15, 2002 12:00 am
Location: USA

Post by Jack » Wed Jun 22, 2005 2:27 pm

Sorry I'v been away from it...

The exception is actually generated from a function in the .NET Framework font class. It appears to be trying to load a new font object. That is about all I can see in the Framework.

The error only appears to happen when I try to instantiate the TChart object using TChart for .NET AFTER I have already loaded a chart using TChart for ActiveX 5.0. I have also seen it in another function when I am going the other way, trying to load a Win32 window control after displaying a TChart for .NET chart.

I have been working around it by enclosing the instantiation in a try / catch block to trap the execption and then immediately re-perform the instantiation. The exception apprear to clear after it is thrown, I am assuming by unloading the offending font object.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jun 23, 2005 10:54 am

Hi Jack,

Could be possible for you to send us an application we can run "as-is" to reproduce the problem here? Also have you tried downloading TeeChart Pro v7 ActiveX evaluation version to see if your problem still occurs with that version?

You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply