const google::protobuf::Descriptor* pDescriptorResponse =
                m_pFileDescriptor->FindMessageTypeByName( "SomeMessage" );

    const google::protobuf::Message* pConstMessageResponse =
                m_pMessageFactory->GetPrototype( pDescriptorResponse );

    SomeMessage* pSomeMessage = pConstMessageResponse->New();

where SomeMessage* is a google::protobuf::Message*

pSomeMessage->set_my_field();   --- causes a crash because my_field is
NULL   where 'set_my_field' is defined in

Does this mean that we can't mix compiled implementation's with
message generated from a MessageFactory?

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to