[zeromq-dev] zguide-master/examples/C++/identity hangs

Jeff Franks jfranks at egcircuits.com
Tue Feb 26 00:52:19 CET 2013


The identity problem is traced to file zhelpers.h.

The s_dump method does not initialize the variable on line 127 to zero . . .

                int64_t more;           //  Multipart detection

Setting this to zero fixed the behavior so that the C++ and C examples for identity work the same way.

Jeff

From: zeromq-dev-bounces at lists.zeromq.org [mailto:zeromq-dev-bounces at lists.zeromq.org] On Behalf Of Ian Barber
Sent: Wednesday, February 13, 2013 2:09 PM
To: ZeroMQ development list
Subject: Re: [zeromq-dev] zguide-master/examples/C++/identity hangs


On Tue, Feb 12, 2013 at 3:00 PM, Jeff Franks <jfranks at egcircuits.com<mailto:jfranks at egcircuits.com>> wrote:
The identity example in zguide works differently for C and C++ bindings.
This does not seem like the expected behavior. Is there a fix?

Looks like a bug somewhere in the examples. It's an odd one though, code looks all right to me. Can you gdb it and see whether it's hanging?

Ian

________________________________
No virus found in this message.
Checked by AVG - www.avg.com<http://www.avg.com>
Version: 2012.0.2238 / Virus Database: 2639/5600 - Release Date: 02/12/13
________________________________

No virus found in this message.
Checked by AVG - www.avg.com<http://www.avg.com>
Version: 2012.0.2238 / Virus Database: 2641/5632 - Release Date: 02/25/13
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130225/5206e2df/attachment.html>


More information about the zeromq-dev mailing list