Mail Archives: djgpp/1997/08/22/21:19:36
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 *
*****************************************************************
- Raw text -