C++Builder and Delphi Exceptions

mihai oltean <[email protected]>
Newsgroups gmane.comp.lang.delphi.programming
Message-ID <[email protected]>
Hi,

I am doing a research project in C++Builder 5.0 and
I'm using large numbers.

I have some problems with exception handling.

If I perform some operations that overflow the
capacity of the double data type I usually get an
EOverflow exception.

But, sometimes the variables that stores the results
are filled with some C++Builder constants (such as NAN
or INF) and no exception is thrown. But, if I use
these
variables (filled with NAN or INF) I get an error and
my application stops.

My question is how could I handle all these exception
in a uniform manner? I wrote several test functions
that check whether the variables contain the NAN and
INF constants, but this significantly slows down my
application. So I don't want to use this functions
anymore, but I need some mechanisms for preventing
such situations. 

Please help me.

Thank you,
Mihai


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/GHXcIA/n.WGAA/ySSFAA/i7folB/TM
---------------------------------------------------------------------~->

CodeCoffer - new Delphi code protection Tool!
http://www.delphicollection.com/public/CodeCoffer.htm
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
--------------------------------------------------------------- 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.