[protobuf] Re: Issue 434 in protobuf: With PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp, parent object deleted while child still exists: causes segmentation fault

2013-01-21 Thread protobuf
Comment #4 on issue 434 by xiaof...@google.com: With PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp, parent object deleted while child still exists: causes segmentation fault http://code.google.com/p/protobuf/issues/detail?id=434 You can just keep an eye on the discussion group. When the new ve

[protobuf] Code generation error (protobuf-net bug)

2013-01-21 Thread paul . baranov
Protogen from protobuf-ner r614 generates code that does not compile. The .proto file seems to be fine as protogen does not report any errors and same .proto file is used to generate c++ code that compiles fine. Here is part that causes the problem: message CosDgp { enum Type { Offline = 1; Onl

[protobuf] Re: Issue 434 in protobuf: With PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp, parent object deleted while child still exists: causes segmentation fault

2013-01-21 Thread protobuf
Comment #3 on issue 434 by jtolds: With PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp, parent object deleted while child still exists: causes segmentation fault http://code.google.com/p/protobuf/issues/detail?id=434 any chance we could have this ticket reopened and then closed when the new v

Re: [protobuf] Parser error - missing required field

2013-01-21 Thread crotty . christopher
Thanks for the info. I did check those bits and they were set. To complete this thread: I did find my problem. In my code I allocated enough bytes in the send buffer for two ints (marker and size), but I was sending them as Varint32's. I changed it to send Uint32's and things are working now.

[protobuf] Issue 455 in protobuf: google/protobuf/message.cc is missing #include

2013-01-21 Thread protobuf
Status: New Owner: liuj...@google.com Labels: Type-Defect Priority-Medium New issue 455 by howard.h...@gmail.com: google/protobuf/message.cc is missing #include http://code.google.com/p/protobuf/issues/detail?id=455 What steps will reproduce the problem? Compile using clang and libc++: cla

[protobuf] Re: How can byte stream (non null terminated) is handled in protobuf?

2013-01-21 Thread Feng Xiao
On Tuesday, January 22, 2013 1:05:25 AM UTC+8, anand ilkal wrote: > > Hi, > > I have a requirement where i need to read byte stream from socket > (non-null terminated) and serialize the data before feeding to processing > entity. > > how can i define non-null terminated byte stream in protobuf?

[protobuf] How can byte stream (non null terminated) is handled in protobuf?

2013-01-21 Thread anand ilkal
Hi, I have a requirement where i need to read byte stream from socket (non-null terminated) and serialize the data before feeding to processing entity. how can i define non-null terminated byte stream in protobuf? -- You received this message because you are subscribed to the Google Groups "P

[protobuf] Re: Help GzipInputStream

2013-01-21 Thread David Granados
Thanks XIAO. Finally i do: ZeroCopyInputStream* input = new google::protobuf::io::FileInputStream(filedescriptor); google::protobuf::io::GzipInputStream gzip_stream(input, GzipInputStream::GZIP); Mail.ParseFromZeroCopyStream(&gzip_stream); And this work perfectly. I paste the code for some

Re: [protobuf] Help GzipInputStream

2013-01-21 Thread Feng Xiao
On Mon, Jan 21, 2013 at 7:53 PM, David Granados wrote: > Hello. > > I compressed a proto object: Mail, in a file named : file.sav. > > Now i need get the proto object mail again, from the file.sav. > > I'm tying some like: > google::protobuf::io::FileInputStream file_stream(filedescriptor); >

[protobuf] how to parse a proto from a string?

2013-01-21 Thread Jonathan Laserson
I defined a proto P [proto2, java_api_version = 2]. I have a String that was created using the toString()method on an instance of P. I want to create a new instance of P from this String. How? [ProtocolTextParser is supposed to do that, but it does not seem to work on proto2]. Jonat

[protobuf] reading a proto from a string

2013-01-21 Thread Jonathan Laserson
I defined a proto P and created a String from an instance of this proto using the toString() method. Now I want to create a new instance of P from this string. How do I do this? The proto is proto2 and I'm using Java. Jonathan -- You received this message because you are subscribe

[protobuf] Help GzipInputStream

2013-01-21 Thread David Granados
Hello. I compressed a proto object: Mail, in a file named : file.sav. Now i need get the proto object mail again, from the file.sav. I'm tying some like: google::protobuf::io::FileInputStream file_stream(filedescriptor); google::protobuf::io::GzipInputStream gzip_stream(&file_stream, GzipInp

Re: [protobuf] GzipOutputStream does not work in ubuntu 12.10

2013-01-21 Thread David Granados
Also, I have re-install using debian, now work. Thanks. El lunes, 21 de enero de 2013 10:36:49 UTC+1, Oliver escribió: > > On Fri, Jan 18, 2013 at 9:58 PM, David Granados > > > wrote: > > >GZipOutputStream gzip_stream(&file_stream, > GzipOutputStream::Options()); > > > main.cpp:11:4: err

[protobuf] upgrade from 2.3.0 to 2.4.1

2013-01-21 Thread 刘城成
Is there anything to do if protobuf is upgraded the version 2.3.0 to 2.4.1? In other words is 2.4.1 full compatible with 2.3.0? -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To view this discussion on the web visit https://groups.google.

[protobuf] Help: upgrade 2.3.0 to 2.4.1

2013-01-21 Thread 刘城成
Is 2.4.1 full compatible with 2.3.0? Do I do anything if I upgrade? -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To view this discussion on the web visit https://groups.google.com/d/msg/protobuf/-/3vxXuL3UYqgJ. To post to this group, sen

Re: [protobuf] GzipOutputStream does not work in ubuntu 12.10

2013-01-21 Thread Oliver Jowett
On Fri, Jan 18, 2013 at 9:58 PM, David Granados wrote: >GZipOutputStream gzip_stream(&file_stream, GzipOutputStream::Options()); > main.cpp:11:4: error: ‘GZipOutputStream’ no se declaró en este ámbito You have the wrong capitalization (GZip vs Gzip) Oliver -- You received this message be