[protobuf] Re: Problems de-serialising a string, C++

2010-02-01 Thread iWalsh
Hi I've solved this now. The problem was in the wrapper class I was provided. Sorry. Regards Iain On Jan 29, 10:31 pm, Iain Walsh iain.d.wa...@googlemail.com wrote: Hi   It's a fairly simple program despite the size. Most of it is just turning the Log into html. The main.cpp just creates

Re: [protobuf] Re: Problems de-serialising a string, C++

2010-02-01 Thread Kenton Varda
This is why I ask people to whittle down their examples: they usually find the problem in the process. :) Glad you figured it out! On Mon, Feb 1, 2010 at 8:19 AM, iWalsh iain.d.wa...@googlemail.com wrote: Hi I've solved this now. The problem was in the wrapper class I was provided. Sorry.

[protobuf] Re: Problems de-serialising a string, C++

2010-01-29 Thread iWalsh
Hi I'm working on a self contained example, I'll have to edit it because it's a bit sensitive for work. I also checked and the files are open in binary mode. Regards Iain On Jan 28, 8:48 pm, Kenton Varda ken...@google.com wrote: There's a bug in your code, but I don't know what.  Can you

Re: [protobuf] Re: Problems de-serialising a string, C++

2010-01-29 Thread Kenton Varda
Sorry, I can only debug something small, but your example is 1000 lines of code, most of it unrelated to protobufs. Please reduce this to a program that simply initializes your message, writes it to a file, reads back the same file, and print the message. It should be only one C++ source file

[protobuf] Re: Problems de-serialising a string, C++

2010-01-28 Thread iWalsh
Hi Thanks for the reply. The methods are both returning correctly. It's the only thing I write to the file. They are also open in binary mode I think, I'll have to double check the binary mode part. Regards Iain -- You received this message because you are subscribed to the Google Groups

[protobuf] Re: Problems de-serialising a string, C++

2010-01-28 Thread iWalsh
Ah Sorry I should also mention that leaving the mac address field empty/default means that the file works correctly. On Jan 28, 7:45 pm, iWalsh iain.d.wa...@googlemail.com wrote: Hi Thanks for the reply. The methods are both returning correctly. It's the only thing I write to the file. They

Re: [protobuf] Re: Problems de-serialising a string, C++

2010-01-28 Thread Kenton Varda
There's a bug in your code, but I don't know what. Can you please reduce it to a small, self-contained example and send it to the list? On Thu, Jan 28, 2010 at 11:47 AM, iWalsh iain.d.wa...@googlemail.comwrote: Ah Sorry I should also mention that leaving the mac address field empty/default