[Lazarus] What's "External: SIGFPE"?
Xiangrong Fang
xrfang at gmail.com
Thu Mar 7 02:30:12 CET 2013
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-ide.org/pipermail/lazarus/attachments/20130307/89a79bd2/attachment-0002.html>
More information about the Lazarus
mailing list