Re: [fpc-pascal] Strange Floating Point Exception problem

2008-08-22 Thread Vinzent Höfler
Marco van de Voort wrote: In our previous episode, Tom Verhoeff said: This means that the if statement is passed 7 times without problem with x = -1, and on the 8th pass, where x = -1 again, it bails out with an FPE. Hmm, didn't the x87 copro stack had 7ish registers? And recursive you say? :-

Re: [fpc-pascal] Strange Floating Point Exception problem

2008-08-22 Thread Marco van de Voort
In our previous episode, Tom Verhoeff said: > What makes things complicated, is that the program has a GUI > through Lazarus, and that it is rather biggish, making it difficult > to isolate the problem. > > The place where it complains is a simple statement Sorry, forgot to mention a test/remedy

Re: [fpc-pascal] Strange Floating Point Exception problem

2008-08-22 Thread Marco van de Voort
In our previous episode, Tom Verhoeff said: > > This means that the if statement is passed 7 times without problem with > x = -1, and on the 8th pass, where x = -1 again, it bails out with an FPE. Hmm, didn't the x87 copro stack had 7ish registers? And recursive you say? :-) ___

[fpc-pascal] Strange Floating Point Exception problem

2008-08-22 Thread Tom Verhoeff
I have an application (for optimizing decisions in the dice game Yahtzee) that uses Real and runs well with FPC on Mac OS X (PPC), but that fails with a Floating Point Exception (FPE) under Windows (FPC 2.2.0). What makes things complicated, is that the program has a GUI through Lazarus, and that