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
May 2011

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

2011.05.05 15:03 "Access Violation on TiffClose()", by Katerina Sedivy
2011.05.05 15:27 "Re: Access Violation on TiffClose()", by Olivier Paquet
2011.05.05 16:02 "Re: Access Violation on TiffClose()", by Katerina Sedivy
2011.05.05 16:22 "Re: Access Violation on TiffClose()", by Olivier Paquet

2011.05.05 15:27 "Re: Access Violation on TiffClose()", by Olivier Paquet

On 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