AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2021.08.26 17:40 "[Tiff] Setting/Getting Custom Metadata", by Reynaldo FariasZorrilla
2021.08.26 17:59 "Re: [Tiff] Setting/Getting Custom Metadata", by Even Rouault
2021.08.26 18:08 "Re: [Tiff] Setting/Getting Custom Metadata", by Rob Tillaart
2021.08.26 23:42 "Re: [Tiff] Setting/Getting Custom Metadata", by Reynaldo FariasZorrilla
2021.08.26 23:45 "Re: [Tiff] Setting/Getting Custom Metadata", by Even Rouault
2021.08.27 00:09 "Re: [Tiff] Setting/Getting Custom Metadata", by Reynaldo FariasZorrilla
2021.08.27 00:11 "Re: [Tiff] Setting/Getting Custom Metadata", by Reynaldo FariasZorrilla
2021.08.27 06:11 "Re: [Tiff] Setting/Getting Custom Metadata", by Roger Leigh

2021.08.27 00:09 "Re: [Tiff] Setting/Getting Custom Metadata", by Reynaldo FariasZorrilla

Thanks!

Unfortunately, now I get a seg fault when trying to read one of the ASCII tags. I read it as follows:

char* dataChar = nullptr;
TIFFGetField(this->tiffFile, tagID,  &dataChar);

std::cout << "Char type: " << dataChar << std::endl; //seg fault here

I assume the dataChar pointer is still a nullpointer in the print, suggesting the get field just didnt do anything. Any ideas as to why that would be the case?