It sounds like you probably have extra bytes at the end of mystr which are
not part of the protobuf.  The parser parses everything before those bytes
just fine, but then chokes when it gets to the bytes it doesn't recognize.
 Please make sure you only pass in the exact bytes which came out of the
serializer at the other end, no more, no less.

On Tue, Nov 9, 2010 at 1:11 PM, Brad Lira <snmp.apa...@gmail.com> wrote:

> I have a c++ client/server application that sends messages using
> protocol buffers, however, at the server side, when i call
>
> address_book.ParseFromString(mystr)
>
> it returns false, but it actually gets the message correctly from
> client side, so i am not sure why it thinks that parsing has failed.
> any ideas?
>
> thanks,
> brad
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to proto...@googlegroups.com.
> To unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com<protobuf%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to