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
June 2006

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

2006.06.04 06:35 "Segfault", by Alex Ryu
2006.06.04 14:41 "Re: Segfault", by Bob Friesenhahn

2006.06.04 14:41 "Re: Segfault", by Bob Friesenhahn

On Sat, 3 Jun 2006, Alex Ryu wrote:
>   TIFFGetField(tif, TIFFTAG_IMAGEWIDTH, &w);
>   TIFFGetField(tif, TIFFTAG_IMAGELENGTH, &h); /*length = height*/
>   tif = TIFFOpen("c:\\image1.tif", "r");

The above code is clearly broken since you are using the tif handle 
before it has even been intialized by TIFFOpen();

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/