I was using findAndGetOFString() to fetch ImagePosition/PixelSpacing tags, these tags have backslashes delimiting different portions of the data within the tag. But my returned OFString only contains the data up to the first backslash in the tag data!
If I use findAndGetString() it works fine. My question is, do I need to free the character pointer I pass to findAndGetString(), or is this done for me?
Code: Select all
void something()
{
char *pszPixelSpacing;
if (!(*imageDataSet)->findAndGetOFString(DCM_PixelSpacing, pszPixelSpacing).good()) {
return;
}
// Must I delete [] pszPixelSpacing here when I'm done, or is this not necessary?
}
Thanks!
________
Video Review