[protobuf] Handle other types of object (Java)

2013-07-23 Thread corri
Hi, i am looking for way how to handle other types by proto file. In my case: - MapString, Serializable, - MapString, Object - Serializable, - Date. - etc. Right now i serialize all these object to byteArray and on other side deserialize. I see some topic about maps

[protobuf] Handle other type of objects (Java)

2013-07-23 Thread corri
Hi, what best way how to handle other type of object. In my case are: - MapString, Serializable, - Serializable, - Date. Right now, i serialize any of these object to byteArray and on other side i deserialize it. I would like to use some other way, if exist. I read some topic

[protobuf] whose responsibility to delete the PB message which is added by set_allocated_xxx(xxx* ptr)?

2013-07-23 Thread Icymaple Han
Hi, I am using protobuf in C++ but confused by set_allocated_xxx. For example, there is a message PB_a which has a member of message PB_b. First create a PB_a object named aa and a PB_b object named bb via new PB_a() and new PB_b(). Then add bb to aa via set_allocated_PB_b(). So the question

Re: [protobuf] whose responsibility to delete the PB message which is added by set_allocated_xxx(xxx* ptr)?

2013-07-23 Thread Feng Xiao
After aa-set_allocated_PB_b(bb) aa will take the ownership of bb. It means aa will be responsible to delete bb, so you only need to delete aa. On Tue, Jul 23, 2013 at 5:42 AM, Icymaple Han icymaple2...@gmail.comwrote: Hi, I am using protobuf in C++ but confused by set_allocated_xxx. For

[protobuf] Issue 535 in protobuf: Rebuild doesn't complete

2013-07-23 Thread protobuf
Status: New Owner: liuj...@google.com Labels: Type-Defect Priority-Medium New issue 535 by dave.ros...@gmail.com: Rebuild doesn't complete http://code.google.com/p/protobuf/issues/detail?id=535 What steps will reproduce the problem? 1. Build the solution 2. Then rebuild the solution 3. What is

[protobuf] InvalidProtocolBufferException using Java and python

2013-07-23 Thread Andreas Reuter
Hello, we have two applications, one written in Java and one in Python. They are exchanging network packets via UDP using protobuf. We ran into the following error: We build a packet in python, then serialize it by calling SerializeToString(): def serialize(self): # create outer

Re: [protobuf] InvalidProtocolBufferException

2013-07-23 Thread Oliver Jowett
On Wed, Jul 24, 2013 at 12:27 AM, Andreas Reuter andreas.rou...@googlemail.com wrote: Hello, we are using Protobuf to communicate between two devices via Ad-hoc WiFi. One of the devices is running a Java application and the other a Python application. [...] 6. Upon closer inspection,