[protobuf] VC++ fix: full paths

2010-03-24 Thread Oleg Smolsky
Hey Kenton, attached is a small fix that prints full file paths in error messages. This is needed when VC++ projects reference files from sub-directories. Oleg. -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send

[protobuf] Why getting errors when exanging large messages

2010-03-24 Thread mk
Hi Could someone please tell me why I am getting these errors when I exchange large messages though sockets between programs: -- libprotobuf ERROR d:\protobuf-2.2.0a\src\google\protobuf \message_lite.cc:106] Ca n't parse message of type Data because it is missing required fields: str, str

Re: [protobuf] Why getting errors when exanging large messages

2010-03-24 Thread Jason Hsueh
The first message from message_lite.cc:106 is telling you that some required fields were missing. Have you verified that each of the fields listed was set? If you don't want required fields checking, you need to use one of the ParsePartial* to skip required field checking. The second message is

Re: [protobuf] Why getting errors when exanging large messages

2010-03-24 Thread Henner Zeller
Just a guess from your statement that it only (?) happens for larger data: did you make sure to read all the data from the socket ? Looks like your data is somehow truncated. A read() call from a socket returns the number of bytes you actually got - you might call it multiple times until you

Re: [protobuf] VC++ 2008 : Run-Time Check Failure #1

2010-03-24 Thread Nathan McDaniel
Hi Kenton, The attached patch patches two files: - coded_stream.h: disables cast to smaller types runtime checks in that file, for Visual C++ = 2003. This was the least invasive fix. I can change it if you prefer. - common.h: sets the __BYTE_ORDER to __LITTLE_ENDIAN for MSVC, which enables

Fwd: [protobuf] Re: Issue with protobuf-2.3.0: Problem running 'configure' on Solaris 10

2010-03-24 Thread Steven Ong
-- Forwarded message -- From: Steven Ong stevenong2...@gmail.com Date: Sat, Mar 20, 2010 at 9:32 PM Subject: Re: [protobuf] Re: Issue with protobuf-2.3.0: Problem running 'configure' on Solaris 10 To: Kenton Varda ken...@google.com Hi all, After taking the second look of the

[protobuf] Many message types

2010-03-24 Thread Gonzo
I am working with Protocol Buffers and Java, and it works like a charm. Thanks for a great library! I am trying to understand the limits in Protocol Buffers. Let's say I wish to have a protoc file that defines 500 (or 1,000, or 10,000) message types. The resulting Java class file will be huge;