Email: samson.kassa@credit-suisse.com
==============
What steps will reproduce the problem?
1. Create a simple .proto file like the one attached.
2. Read the file into stream and try either of the following two options.
Option 1.
using pb = Google.ProtocolBuffers;
using pbdp =Google.ProtocolBuffers.DescriptorProtos;
Stream reader = File.OpenRead(protoFile);
pbdp.FileDescriptorProto fileDescProto = pbdp.FileDescriptorProto.ParseFrom(reader); //this throws exception
Option 2.
using pb = Google.ProtocolBuffers;
using pbdp =Google.ProtocolBuffers.DescriptorProtos;
Stream reader = File.OpenRead(protoFile);
pb.ICodedInputStream inputStr = pb.CodedInputStream.CreateInstance(reader);
pb.IBuilder builder = new pbdp.DescriptorProto.Builder();
builder.WeakMergeFrom(inputStr); //this line throws the exception
What version of the product are you using? On what operating system?
I am using V4.0 for C#.net
Please provide any additional information below.
Original issue reported on code.google.com by samich...@gmail.com on 9 Oct 2012 at 8:40
Original issue reported on code.google.com by
samich...@gmail.com
on 9 Oct 2012 at 8:40Attachments: