As a test, try to include the math unit and call SetExceptionMask([exInvalidOp, exDenormalized, exZeroDivide,exOverflow, exUnderflow, exPrecision]); before you use any SDL functions
This worked. Can I simply keep it that way, or do I need to find a more clean way to cope with that?