2012.11.28 16:45 "[Tiff] Error in TIFFWriteDirectory when writting multi page TIFF", by Jorge Martin

2012.11.28 16:45 "[Tiff] Error in TIFFWriteDirectory when writting multi page TIFF", by Jorge Martin

Hello,

I am trying to write multi-file TIFF. In some cases I am obtaining the following error from TIFFWriteDirectory function:

TIFFLinkDirectory: Error fetching directory count.

     TIFFReadDirectory help says:

      "*Error fetching directory count*. A read error occurred when
fetching the directory count field for a previous directory. This can occur
when setting up a link to the directory that is being written."

But I do not understand the origin of the error and how to solve this problem, because it only writes the first image.

Does anyone know how to solve this error?

Best Regards,

Jorge