[Gambas-user] pigpio c library callback gives segmentation fault (11)
Benoît Minisini
g4mba5 at gmail.com
Tue Nov 13 04:14:40 CET 2018
Le 13/11/2018 à 01:10, Steve via User a écrit :
> I turned the pigipod_if2.c function set into a shared library that
> Gambas3 found acceptable for use with Extern statement.
>
> In general the functions work fine. The connected hardware is accessed
> and properly manipulated.
>
> However one of the functions needs a callback. When the callback is
> triggered a segmentation fault occurs. Generally this means to me that
> the address being passed is invalid and an attempt was made to go
> outside user space.
>
> The gambas documentation says it should work. Is there something special
> I need to do?
>
> tia
>
> Code below
>
Can you provide your full project, and the header files of the library?
Otherwise we cannot help.
Regards,
--
Benoît Minisini
More information about the User
mailing list