AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
October 2005

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2005.10.14 10:46 "TIFFUnlinkDirectory bug with directory number", by Eugene Shebeko
2005.10.23 19:37 "Re: TIFFUnlinkDirectory bug with directory number", by Andrey Kiselev

2005.10.23 19:37 "Re: TIFFUnlinkDirectory bug with directory number", by Andrey Kiselev

On Fri, Oct 14, 2005 at 01:46:34PM +0300, ϋΕΒΕΛΟ εΧΗΕΞΙΚ wrote:
> I think it's bug.
> If TIFFSetDirectory() numerate directories from 0,
> then TIFFUnlinkDirectory() should numerate from 0.
> But actually numerating in this function begin with 1.
> 
> This code for example remove nothing.
> 
> int main(int argc,char** argv)
> {
>     TIFF* tif=TIFFOpen("empty.tif","a");
>         TIFFUnlinkDirectory(tif,0);
>         TIFFClose(tif);
>         return 0;
> }
> 
> But if we replace to
>         TIFFUnlinkDirectory(tif,1);
> this remove first directory.

Eugene,

I think you are right and such behaviour is not logical. But changes in
this function may result in incompatibilities with existing software and
random crashes of utilities which depends on the current behaviour.

So I decided to hold this change a bit.

Regards,
Andrey

-- 
Andrey V. Kiselev
Home phone:  +7 812 5970603  ICQ# 26871517