Hi All,
I am making a charting program and encountered very weird error. The exception raised is: 'External: SIGFPE'. In file 'lcltype.pp' at line
3009. On that line is the MulDiv() function, and the operation I am doing is just assigning font height. I then remembered the question i asked days ago about 1/0 and Ln(0). Sven suggested to use SetExceptionMask.
I tried this in my FormCreate:
SetExceptionMask([exInvalidOp, exDenormalized, exZeroDivide, exOverflow,
exUnderflow]);Now the program crashes every time it start. I also tested to put the above line on an empty project, same error happened in gtk2winapi.inc!
Could anyone explain what's SIGFPE? Why there is a SetExceptionMask? Why a normal empty form application will generate SIGFPE with these masks, and how to trace down to the cause of this error?
Thanks a lot!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130307/89a79bd2/attachment.html>
