Hi,����the problem is that the Zq function has the following signature:
int zmq_msg_recv (zmq_msg_t *msg, void *socket, int flags);
And in your ffiCall you are putting #long.��
You should use the correct size of integers, as the binary numbers need to extend the size when they are negatives.��
0xFFFFFFFF is a valid positive for a long, but a -1 for an int.��