Re: [Vala] Copy function produces segmentation fault



On Tue, May 17, 2011 at 01:55:57PM -0600, Lewis Gunsch wrote:
Hi,

I have been writing a Vapi for the ZeroMQ library: http://www.zeromq.org/. I
would eventually like it to be distributed with Vala itself, and would
propose myself as the maintainer.

See the vapi here:
https://github.com/lgunsch/zmq-vala/blob/master/libzmq.vapi

Would you add a link to http://live.gnome.org/Vala/ExternalBindings ?

Although, I am having some trouble getting the MSG.Msg.copy() message copy
function to work correctly. It produces a segmentation fault. I am unsure
how to go about fixing this issue. You can see the docs for the libraries
copy function below.

http://api.zeromq.org/2-1:zmq-msg-copy

Try with:
[CCode (instance_pos = 2)]
public int copy (out Msg dest);

Use as:
Msg copy;
int res = somemsg.copy (out copy);

-- 
http://www.debian.org - The Universal Operating System

Attachment: signature.asc
Description: Digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]