[Gambas-user] A "Callback" function doesn't work.
Jussi Lahtinen
jussi.lahtinen at ...626...
Thu Jul 18 14:46:40 CEST 2013
> > Dim status As Short
> >
> > client = jack_client_open(nomeClient, options,
> > VarPtr(status), Null)
>
> However... the relative compiled program was created, and launched in
> Terminal I obtained this value: 4
>
OK, so with memcpy you should use sizeof(gb.Single).
After these corrections I got SGN11 from libjack.
Starting program: /usr/bin/gbx3
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe6ee9700 (LWP 5951)]
[New Thread 0x7fffe6e68700 (LWP 5952)]
Cannot lock down 82246176 byte memory area (Cannot allocate memory)
0
Campionamento = 44100
[New Thread 0x7fffe6de7700 (LWP 5953)]
Program received signal SIGSEGV, Segmentation fault.
0x00007fffe6f0323c in ?? () from /usr/lib/x86_64-linux-gnu/libjack.so.0.1.0
(gdb) bt
#0 0x00007fffe6f0323c in ?? () from
/usr/lib/x86_64-linux-gnu/libjack.so.0.1.0
#1 0x00007fffffffc548 in ?? ()
#2 0x0000000000006f9c in ?? ()
#3 0x000000000000003d in ?? ()
#4 0x0000000000000004 in ?? ()
#5 0x0000000000000000 in ?? ()
I don't know what is going on. If you really want to find out, maybe you
should contact developers of jack,
or compile libjack from sources with debugging information. Then I would
think we could have more meaningful bt.
But maybe we just missed something from the C to Gambas translation...
Jussi
More information about the User
mailing list