| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2006.06.04 14:41 "Re: Segfault", by Bob FriesenhahnOn 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/
|
|||||||