[fpc-pascal] Mozilla XPCOM

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Jun 3 12:00:30 CEST 2010


On 03 Jun 2010, at 10:24, Michael Van Canneyt wrote:

> On Thu, 3 Jun 2010, Jonas Maebe wrote:
>
>> On 03 Jun 2010, at 08:55, Michael Van Canneyt wrote:
>>
>>> When I was debugging it (linux 64 bit) , the whole application  
>>> stopped on a floating point error somewhere in mozilla's  
>>> Javascript engine; I never got
>>> around to debugging that.
>>
>> Did you try disabling floating point exceptions? A lot of C code  
>> assumes that floating point exceptions are disabled (since that's  
>> what the C library does on startup).
>
> Aha. And how do I do that ?

uses
   math;

   SetExceptionMask([exInvalidOp, exDenormalized, exZeroDivide,  
exOverflow, exUnderflow, exPrecision])


Jonas



More information about the fpc-pascal mailing list