I noticed you added a Set8087CW() to fix this problem, but it doesn't 
work for me, at least on amd64 with trackbar.

I made a simple pure gtk+ C and pascal 1:1 program to test this and 
found out that setting $1332 or $133f doesn't help at all.

Setting via math unit (SetExceptionMask(GetExceptionMask + exZeroDivide) 
however does fix it. It's good enough to do this around gtk_main() too 
it seems (for the trackbar at least).

I think the best thing to do here is to use the Math unit functions and 
Set/Unset the exZeroDivide mask before/after gtk_main.

Again, the Set8087CW change didn't fix it on amd64/gtk2 (and possibly 
introduced various issues for math users).

Ales
_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to