Re: [Gambas-user] Signal 11, when calling external function

2010-06-13 Thread Benoît Minisini
Did you compile Gambas with debugging information enabled ? Gambas is compiled with following steps: 1. ./reconf 2. ./configure -C 3. make 4. sudo make install Are debugging information enabled by default? Otherwise you will have more useful information by running your

Re: [Gambas-user] Signal 11, when calling external function

2010-06-13 Thread Jussi Lahtinen
What happens if you declare Aja_Mtrx that way?        void Aja_Mtrx(int k0[31][], int k1[31][], int k2[31][]) It trows error: array type has incomplete element type And that way?        void Aja_Mtrx(int k0[31][31], int k1[31][31], int k2[31][31]) Same, signal 11. Jussi

Re: [Gambas-user] Signal 11, when calling external function

2010-06-13 Thread Benoît Minisini
What happens if you declare Aja_Mtrx that way? void Aja_Mtrx(int k0[31][], int k1[31][], int k2[31][]) It trows error: array type has incomplete element type And that way? void Aja_Mtrx(int k0[31][31], int k1[31][31], int k2[31][31]) Same, signal 11. Do you

Re: [Gambas-user] Signal 11, when calling external function

2010-06-13 Thread Jussi Lahtinen
OK, I compiled revision 3003, still signal 11. But different valgrind output (see attachment). Jussi 2010/6/13 Benoît Minisini gam...@users.sourceforge.net: What happens if you declare Aja_Mtrx that way?        void Aja_Mtrx(int k0[31][], int k1[31][], int k2[31][]) It trows error:

Re: [Gambas-user] Signal 11, when calling external function

2010-06-13 Thread Jussi Lahtinen
Forgot to mention this valgrind output is made with declaration: void Aja_Mtrx(int k0[31][31], int k1[31][31], int k2[31][31]) Jussi On Sun, Jun 13, 2010 at 17:41, Jussi Lahtinen jussi.lahti...@gmail.com wrote: OK, I compiled revision 3003, still signal 11. But different valgrind output (see

Re: [Gambas-user] Signal 11, when calling external function

2010-06-13 Thread Jussi Lahtinen
...but declaration: void Aja_Mtrx(int k0[][31], int k1[][31], int k2[][31]) Gives same valgrind output. Jussi On Sun, Jun 13, 2010 at 17:41, Jussi Lahtinen jussi.lahti...@gmail.com wrote: Forgot to mention this valgrind output is made with declaration: void Aja_Mtrx(int k0[31][31], int

Re: [Gambas-user] Signal 11, when calling external function

2010-06-13 Thread Benoît Minisini
...but declaration: void Aja_Mtrx(int k0[][31], int k1[][31], int k2[][31]) Gives same valgrind output. Jussi OK, the bug should be fixed in revision #3004! Regards, -- Benoît Minisini -- ThinkGeek and

Re: [Gambas-user] Signal 11, when calling external function

2010-06-13 Thread Jussi Lahtinen
It is working now! Thanks!! Jussi 2010/6/13 Benoît Minisini gam...@users.sourceforge.net: ...but declaration: void Aja_Mtrx(int k0[][31], int k1[][31], int k2[][31]) Gives same valgrind output. Jussi OK, the bug should be fixed in revision #3004! Regards, -- Benoît Minisini

Re: [Gambas-user] Signal 11, when calling external function

2010-06-11 Thread Jussi Lahtinen
Hope this helps... Program received signal SIGSEGV, Segmentation fault. 0x77535f5e in ffi_call_unix64 () from /usr/lib/libffi.so.5 (gdb) bt #0 0x77535f5e in ffi_call_unix64 () from /usr/lib/libffi.so.5 #1 0xff0077535c84 in ?? () #2 0x in ?? () #3

Re: [Gambas-user] Signal 11, when calling external function

2010-06-11 Thread Benoît Minisini
Hope this helps... Program received signal SIGSEGV, Segmentation fault. 0x77535f5e in ffi_call_unix64 () from /usr/lib/libffi.so.5 (gdb) bt #0 0x77535f5e in ffi_call_unix64 () from /usr/lib/libffi.so.5 #1 0xff0077535c84 in ?? () #2 0x in ?? () #3

Re: [Gambas-user] Signal 11, when calling external function

2010-06-11 Thread Jussi Lahtinen
Did you compile Gambas with debugging information enabled ? Gambas is compiled with following steps: 1. ./reconf 2. ./configure -C 3. make 4. sudo make install Are debugging information enabled by default? Otherwise you will have more useful information by running your program inside

Re: [Gambas-user] Signal 11, when calling external function

2010-06-10 Thread Jussi Lahtinen
Function declaration is from example code I found, I don't understand logic of that notation. BUT it works with Gambas2, and it worked fine with earlier revision of Gambas3. I'm not saying that it makes it correct way pass 2d arrays, but makes me puzzled... Jussi 2010/6/10 Benoît Minisini

Re: [Gambas-user] Signal 11, when calling external function

2010-06-10 Thread Jussi Lahtinen
I changed code to (makes very much more sense to me): void Aja_Mtrx(int k0[][31], int k1[][31], int k2[][31]) But it still doesn't work with Gambas3. With Gambas2 everything is OK. Jussi On Thu, Jun 10, 2010 at 18:18, Jussi Lahtinen jussi.lahti...@gmail.com wrote: Function declaration is from

[Gambas-user] Signal 11, when calling external function

2010-06-08 Thread Jussi Lahtinen
Hi! I have use external function for certain tasks successfully, but I run into problems with recent revision of Gambas. In Gambas: Public Extern Aja_Mtrx(pk0 As Pointer, pk1 As Pointer, pk2 As Pointer) In libMlpp Public k0 As New Integer[31, 31] Public k1 As New Integer[31, 31] Public k2 As New