From: Andrew R. <ar...@ge...> - 2001-11-29 05:49:20
|
I finally found the error in X20C that was causing SIGFP errors. The error was being tripped by a floating point exception in "plMinMax2dGrid", which in turn was being caused by a miss-allocation in "plAlloc2dGrid". "plAlloc2dGrid" has always worked in the past with DJGPP so why it stopped working now, and only with X20C.C, I don't know. Any clues ? I changed the memory allocation from malloc to calloc, ensuring the buffer was zeroed, and at the same time put in a quick memory checking routine. That should not effect "plAlloc2dGrid" at all by my reading, but it does somehow, at least for DJGPP. So all now seems fine on the DJGPP front... I hope I have not upset anything for you linux guys with my change. If so, I am sure you will let me know ;-) - Andrew |