| 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 |
Thread2011.05.05 15:27 "Re: Access Violation on TiffClose()", by Olivier PaquetOn Thu, May 5, 2011 at 11:03 AM, Katerina Sedivy <sedivyk@gmail.com> wrote:
> procedure TMainAppRunnerDlg.btnTIFFOpenClick(Sender: TObject);
> var
> lh_TiffHandle: Pointer;
> begin
> lh_TiffHandle := DLL_TIFFOpen('C:\Develop\Tests\cheque_216_A.tif', 'r');
> try
> finally
> DLL_TIFFClose(lh_TiffHandle);
> end;
> end;
It looks to me like you don't actually check that TIFFOpen works.
TIFFClose will definitely crash on a null handle so that might be your
problem.
Olivier
|
|||||||