On Dec 7, 11:45 am, nightwalker leo <[EMAIL PROTECTED]> wrote:
> when I try to parse an addressbook file which has 2^20 records of
> person , my program complains like this:
> libprotobuf WARNING D:\protobuf-2.0.2\src\google\protobuf\io
> \coded_stream.cc:459] Reading dangerously large protocol message.  If
> the message turns out to be larger than 67108864 bytes, parsing will
> be halted for security reasons.  To increase the limit (or to disable
> these warnings), see CodedInputStream::SetTotalBytesLimit() in google/
> protobuf/io/coded_stream.h.
>
> how to deal with the problem in an elegant way instead of increasing
> the limit or simply turning off the warning message?

In my C# port, I have code to write out messages as if they were a
repeated field #1 of a container type, and another class to read in
the same format in a stream manner, one entry at a time.

Would that useful to you?

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

Reply via email to