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
Arithmetic overflow exception from Windows .NET Framework
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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?
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 |
Instructions - How to post in this forum |
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.
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.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |