[fpc-devel] fpc and delphi applications cause floating point exceptions in other windows software :)
Paul Ishenin
ip at kmiac.ru
Wed Jun 11 04:45:29 CEST 2008
Hello, FPC developers' list.
While implementing cursor support for gtk2 I noticed that lazarus
crashed every time with SIGFPE: division by zero in ICM32.dll if we used
GdkPixbuf as an image for the cursor. In that time I made a woraround to
use old gtk1 code for windows case (which used GtkPixmap's for the same
task).
Now lazarus needs icon support and the same thing: when GdkPixbuf is an
icon image then we have SIGFPE: division by zero at the same dll.
Ok, I searched the internet and found this gtk issue:
http://bugzilla.gnome.org/show_bug.cgi?id=316645 where ppl complained
about borland tools which incorrectly modifies CPU flags and this cause
crahes in other software (in that case GIMP).
I've made a conclusion that I have the same issue but with FPC. I
disabled floating point exceptions before my gdk call and I see no crash
and working cursors and icons.
I'm not skilled in compilers, CPUs and FPUs and I just want to ask you
if it is ok?
--
Best regards,
Paul Ishenin.
More information about the fpc-devel
mailing list