[zeromq-dev] Use of the Zero-Copy Message Constructor?

Martin Sustrik sustrik at 250bpm.com
Mon Feb 14 15:51:30 CET 2011


Hi Bob,

>    If so, then what can I do to get the zero-copy working?

I would guess that the problem you are seeing is caused by premature 
buffer decallocation.

You should deallocate the buffer when recycle() is called.

However, my guess is that the buffer of aPayload is deallocated when the 
string is destructed.

Martin



More information about the zeromq-dev mailing list