Re: [protobuf] protobuf2.3.0 crashes on using extensions

2010-02-08 Thread Kenton Varda
You need to use AddExtension() to add a new value to a repeated field. SetExtension() is for modifying an existing value. In fact, you're supposed to pass the index of the value you want to modify to SetExtension, e.g.: fltData.SetExtension(FilterData::filter_columns, 5, "TEST"); Due to a bug

[protobuf] protobuf2.3.0 crashes on using extensions

2010-02-06 Thread PromeLite
I am trying to use extensions in protcol buf(version 2.3.0) using visual studio 2008 c++. Here is my .proto file: message DataMsg { optional int32 msgtype=99; extensions 100 to max; } message FilterData { extend DataMsg { optional string filter_colu