Page 1 of 1
Arithmetic overflow exception from Windows .NET Framework
Posted: Thu Jun 16, 2005 2:07 pm
by 6922178
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
Posted: Mon Jun 20, 2005 11:14 am
by narcis
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?
Posted: Wed Jun 22, 2005 2:27 pm
by 6922178
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.
Posted: Thu Jun 23, 2005 10:54 am
by narcis
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.