The binding should take care of that - if the calling language
automatically manages memory, it shouldn't need to care. In your binding I
would allocate memory using whatever the normal process is in that
language, so that it is garbage collected.

Ian


On Mon, Aug 19, 2013 at 7:52 AM, [email protected] <
[email protected]> wrote:

> Hello,
>
> I managed to get a CZMQ dll under windows. That fine so far. Actually I
> am not doing "C", but bind it to a smalltalk dialect. Now the problem
> when using (for example): zstr_recv().
>
> It is said that the caller must free the receiving string, but how is
> this done, when you only have a high-level binding and no "free()"
> function to call.
>
> Should czmq offer a free-helper function to make this possible ?
>
>
> _______________________________________________
> zeromq-dev mailing list
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to