Hello dear all,
with the pogo generation of an DevString dynamic attribute, we found this in the ClassName::add_AttributeName_dynamic_attribute(std::string attname) method :
{
// ...
char array[1];
array[0] = '\0';
ChannelName_data.insert(make_pair(attname, array));
add_attribute(channelname);
}
The array array is automatically deallocated at the end of the method so a call to get_AttributeName_data_ptr must return an dangling pointer.
Or am I missing something ?
Best regards, Olivier Neveu