[fpc-pascal] Same code from LCL project throw error in console application
José Mejuto
joshyfun at gmail.com
Tue Apr 16 22:28:15 CEST 2013
El 16/04/2013 21:23, Krzysztof escribió:
> Hi,
>
> I have strange issue. Simple mpg123 player which work fine on LCL
> project, on console application throw floating error in line "mh_e :=
> mpg123_read(mh, @outbuf[0], buffer_size, done);"
Hello,
I'm not sure but I think that the GTK2 Widgetset disables some exception
masks because GTK2 code here and there raises some float exceptions
(division by cero, and others).
Try to do it in your console code before the mpg123 calls.
Unit math
SetExceptionMask (if my memory serves me).
--
More information about the fpc-pascal
mailing list