[protobuf] Issue 292 in protobuf: In python-proto2.cc any time -parent is set you need to Py_INCREF on it

2011-05-16 Thread protobuf
Status: New Owner: liuj...@google.com Labels: Type-Defect Priority-Medium New issue 292 by jeremiah...@gmail.com: In python-proto2.cc any time -parent is set you need to Py_INCREF on it http://code.google.com/p/protobuf/issues/detail?id=292 What steps will reproduce the problem? 1. Get a

[protobuf] Re: Problem with C++ -writing multiple messages with a repeated field to a file

2011-05-16 Thread Nigel Pickard
Thanks Evan, I'll give this a try. I have actually got the code working, but it involves creating a new output stream everytime I write to it (surely got to be wasteful and not the right way?). Nigel On May 13, 11:50 am, Evan Jones ev...@mit.edu wrote: On May 13, 2011, at 10:12 , Nigel Pickard

Re: [protobuf] Re: Generated hashcode() returns different values across JVM instances?

2011-05-16 Thread Pherl Liu
We discussed internally and decided not to make the hashCode() return deterministic result. If you need consistent hashcode in different runs, use toByteString().hashCode(). Quoted from Kenton: Hashing the content of the descriptor would actually be incorrect, because two descriptors with

Re: [protobuf] Re: Problem with C++ -writing multiple messages with a repeated field to a file

2011-05-16 Thread Evan Jones
On May 16, 2011, at 9:45 , Nigel Pickard wrote: I have actually got the code working, but it involves creating a new output stream everytime I write to it (surely got to be wasteful and not the right way?). Definitely not needed, and it will be more efficient if you can re-use a single

[protobuf] Re: Unstable Java -- C++

2011-05-16 Thread Joshua Foster
I use Protobufs and ZeroMQ all the time and I have not noticed any stability issues. The ZeroMQ Java bindings use JNI.I would suggest generating data on both sides and comparing the bytes. Joshua -- You received this message because you are subscribed to the Google Groups Protocol Buffers