My sample code as follows:
{ emaaccess::UpdateMsg msg; msg.name("hello"); fprintf(stderr, "process update msg with name:%s", msg.getName().c_str()); }
The app will crash when calling getName(), why ? I already called name() function to set this field.