From: Robert Hoehne Newsgroups: comp.os.msdos.djgpp Subject: Re: Floating Point Exception Date: Wed, 20 Aug 1997 12:49:08 +0200 Organization: TU Chemnitz-Zwickau Lines: 32 Message-ID: <33FACBA4.1DFF7DBB@Mathematik.TU-Chemnitz.DE> References: <01bcabc3$a01da100$5af382c1 AT damien> <33F8549A DOT 4CB5 AT cornell DOT edu> <01bcac2d$edf69fc0$LocalHost AT damien> NNTP-Posting-Host: pandora.hrz.tu-chemnitz.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Rich Birch wrote: > > Here's the code that I am sure is producing the crash (remember it doesn't > crash in Rhide) :- > > float Function::Result(float x) { > float result = 0; > for (int count = 0; count < num_results; count++) { > if (form.Denominator[count]) //so not to divide by zero > result += (form.Numerator[count] > / form.Denominator[count]) > * int_power (x, form.Power[count]); > } > return(result); > } Until you don't give us a working example, the above code is meaningless, since anything can happen. To the problem with not getting the SIGFPE in RHIDE. Running under W95 and trying to reproduce a crash is sometimes a pain. Simply running it under raw DOS using cwsdpmi is much better to get a good crash. Robert -- ***************************************************************** * Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau * * Post: Am Berg 3, D-09573 Dittmannsdorf * * e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE * * WWW: http://www.tu-chemnitz.de/~rho * *****************************************************************