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

Jeff Franks jfranks at egcircuits.com
Tue Feb 26 12:13:54 CET 2013


Pieter,

The new version of the zhelpers.hpp headers file works great!
Thank you.

Jeff

> -----Original Message-----
> From: zeromq-dev-bounces at lists.zeromq.org [mailto:zeromq-dev-
> bounces at lists.zeromq.org] On Behalf Of Pieter Hintjens
> Sent: Tuesday, February 26, 2013 4:05 AM
> To: ZeroMQ development list
> Subject: Re: [zeromq-dev] zguide-master/examples/C++/identity hangs
> 
> Hi Jeff,
> 
> I think that should be an int, not int64_t.
> 
> I've pushed a new version of the headers file, could you try it?
> 
> -Pieter
> 
> On Tue, Feb 26, 2013 at 12:52 AM, Jeff Franks <jfranks at egcircuits.com>
> wrote:
> > 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>
> 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
> > 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
> > Version: 2012.0.2238 / Virus Database: 2641/5632 - Release Date:
> > 02/25/13
> >
> >
> > _______________________________________________
> > zeromq-dev mailing list
> > zeromq-dev at lists.zeromq.org
> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >
> 
> 
> On Tue, Feb 26, 2013 at 12:52 AM, Jeff Franks <jfranks at egcircuits.com>
> wrote:
> > 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>
> 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
> > 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
> > Version: 2012.0.2238 / Virus Database: 2641/5632 - Release Date:
> > 02/25/13
> >
> >
> > _______________________________________________
> > zeromq-dev mailing list
> > zeromq-dev at lists.zeromq.org
> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> 
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.2238 / Virus Database: 2641/5632 - Release Date:
> 02/25/13

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2238 / Virus Database: 2641/5632 - Release Date: 02/25/13


More information about the zeromq-dev mailing list