Re: [fpc-devel] Exception problems in FPC 3.0.0

2015-10-29 Thread Yury Sidorov
On 10/29/2015 1:22 PM, Sergio Flores wrote: I've never experienced such issues. You should try to use different NDK versions. I use ndk-r8d. It is stable. I got the latest ndk download, it works fine, most of my problems were derived from using Mingw, switching to Cygwin solved the issues. Act

Re: [fpc-devel] Exception problems in FPC 3.0.0

2015-10-29 Thread Sergio Flores
> I've never experienced such issues. You should try to use different NDK > versions. I use ndk-r8d. It is stable. I got the latest ndk download, it works fine, most of my problems were derived from using Mingw, switching to Cygwin solved the issues. >Do you use static .a libs? I generate a .a lib

Re: [fpc-devel] Exception problems in FPC 3.0.0

2015-10-28 Thread Yury Sidorov
On 10/28/2015 3:07 PM, Sergio Flores wrote: Building a cross compiler is a trivial task even on Windows. Read here ho to do that:http://wiki.freepascal.org/Android I know how to build a crosscompiler, the problem is that doing it in Windows you sometimes get very weird errors (like the building

Re: [fpc-devel] Exception problems in FPC 3.0.0

2015-10-28 Thread Sergio Flores
>Building a cross compiler is a trivial task even on Windows. >Read here ho to do that: http://wiki.freepascal.org/Android I know how to build a crosscompiler, the problem is that doing it in Windows you sometimes get very weird errors (like the building process stopping with error message saying

Re: [fpc-devel] Exception problems in FPC 3.0.0

2015-10-27 Thread Yury Sidorov
On 10/27/2015 4:29 PM, Sergio Flores wrote: Yury, I think you're right, I'm using the precompiled binary that indeed seems to been compiled in soft-fpu mode, so that would explain everything, as OpenGL is probably triggering hard fpu exceptions that are not being caught. I tried your asm functio

Re: [fpc-devel] Exception problems in FPC 3.0.0

2015-10-27 Thread Sergio Flores
Yury, I think you're right, I'm using the precompiled binary that indeed seems to been compiled in soft-fpu mode, so that would explain everything, as OpenGL is probably triggering hard fpu exceptions that are not being caught. I tried your asm function, however adding it makes the app crash at st

Re: [fpc-devel] Exception problems in FPC 3.0.0

2015-10-26 Thread Joost van der Sluis
Did you compile fpc yourself, or used a binary release? If you did it yourself, please try 3.0.1. There was a last minute fix that did not make it into the source-archive. Joost Op 26-10-15 20:39 schreef Sergio Flores: Hi guys, congrats for the 3.0 release! However after upgrading FPC, my Andro

Re: [fpc-devel] Exception problems in FPC 3.0.0

2015-10-26 Thread Yury Sidorov
On 10/26/2015 9:38 PM, Sergio Flores wrote: Hi guys, congrats for the 3.0 release! However after upgrading FPC, my Android game now crashes with division by zero exceptions (it happens always in the same place). I changed nothing in the code, only the compiler changed from a 2.7.x to 3.0.0 (cro

[fpc-devel] Exception problems in FPC 3.0.0

2015-10-26 Thread Sergio Flores
Hi guys, congrats for the 3.0 release! However after upgrading FPC, my Android game now crashes with division by zero exceptions (it happens always in the same place). I changed nothing in the code, only the compiler changed from a 2.7.x to 3.0.0 (cross compiler windows to Arm binary version obta