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& mta)
{
MyCollection col;
col.set_allocated_MyTypeA(&mta); //This point eventually fires of a debug
assertion
}*
Eventually after a while I get an error and the stack trace leads to
void MyCollection::SharedCtor() {
_cached_size_ = 0;
MyTypeA_ = NULL;
MyTypeB_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
and also in the
set_allocated_custord method of the generated code
any suggestions on how I could resolve htis issue
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.