[protobuf] Debug assertion failed while attempting to set an object

2013-08-28 Thread Rajesh Khan
https://lh4.googleusercontent.com/-Am9nM_zm1i0/Uh4zrDQJPlI/AAk/utPcxdnVUIg/s1600/buf.png I currently have something like this. I get an error when i attempt to store data in a message that has multiple message types in it. message MyTypeA { optional string Account = 1 ; optional string

[protobuf] Error while attempting to assign a message type as filed in a message type.

2013-08-28 Thread Rajesh Khan
I have something like this in my proto file message MyTypeA { optional string Account = 1 ; optional string Name = 2 ; } message MyTypeB { optional int32 position = 1; } message MyCollection { optional MyTypeA= 1; optional MyTypeB pos = 2; } Now I am using it as *void SomeMethod(MyTypeA