ThorstenB skrev 2010-12-20 19.58: > So, unfortunately, divisons-by-zero, processing with "infinity" or > "NaN" (not-a-number) values isn't really uncommon for FG. And since > the FG default is to ignore any FPE (i.e. not to use the > "--enable-fpe" option), few people care (I guess). > Personally I don't like ignoring such exceptions, since it often hides > real programming errors. So, yes, I think it'd be great if someone had > a look into these issues, finds all the bad computations and fixes > them. However, since everyone (?) else in FlightGear keeps FPEs > disabled, it may turn out to be a Sisyphean task to rid _all_ such > occurrences...
It is always possible to throw in asserts (http://www.cplusplus.com/reference/clibrary/cassert/assert/) in the code and later use NDEBUG to disable the asserts for production code. Cheers, Jari ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel