I don't know the answer, but here's how I'd debug it.

I'd create a file with just ONE object in it and set a breakpoint in the
loop.

Compare the state of the stream the first time and the second time through
the loop (the second time being when you want to break out) and see if any
condition has switched that you can test on.

If no condition has changed and you still loop forever, then you're somehow
getting stuck on the last byte or so.  Is there somewhat in the interface
to force it to read to the end if needs be?

Sorry, wish I knew this part of the code better...

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected].
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