Return-Path: owner-tiff@olympiakos.com
Return-Path: <owner-tiff@olympiakos.com>
Received: from localhost (localhost [127.0.0.1])
	by at1895.spb.edu (8.12.0.Beta7/8.12.0.Beta7) with ESMTP id f7T96MN8012177
	for <dron@localhost>; Wed, 29 Aug 2001 13:11:52 +0400
Received: from eudoramail.com [209.185.123.45]
	by localhost with POP3 (fetchmail-5.8.1)
	for dron@localhost (single-drop); Wed, 29 Aug 2001 13:11:52 +0400 (MSD)
Received: from gate7.olympiakos.com ([207.176.88.85]) by shared1-mail.whowhere.com; Tue Aug 28 19:01:24 2001
Received: from localhost (daemon@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) with SMTP id VAA12091;
	Tue, 28 Aug 2001 21:34:40 -0400
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Tue, 28 Aug 2001 21:26:16 -0400
Received: (from majordom@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) id VAA11980
	for tiff-outgoing; Tue, 28 Aug 2001 21:26:15 -0400
X-Authentication-Warning: gate7.olympiakos.com: majordom set sender to owner-tiff@olympiakos.com using -f
Received: from snfc21.pbi.net (mta6.snfc21.pbi.net [206.13.28.240])
	by gate7.olympiakos.com (8.9.3/8.9.3) with ESMTP id VAA11977
	for <tiff@olympiakos.com>; Tue, 28 Aug 2001 21:26:13 -0400
Received: from adsl ([216.103.51.136])
 by mta6.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May  7 2001))
 with SMTP id <0GIS006YYLETFB@mta6.snfc21.pbi.net> for tiff@olympiakos.com;
 Tue, 28 Aug 2001 12:13:41 -0700 (PDT)
Date: Tue, 28 Aug 2001 12:14:38 -0700
From: Peter Montgomery <pjmonty@csi.com>
Subject: Re: unhandled exception while trying to open a tiff file
To: tiff@olympiakos.com
Message-id: <004101c12ff5$b043a240$0201a8c0@pacbell.net>
MIME-version: 1.0
X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
X-Mailer: Microsoft Outlook Express 5.50.4522.1200
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7bit
X-Priority: 3
X-MSMail-priority: Normal
References: <62EBE1BD35CBD311B93B009027936AF801384727@montrouge.ilog.fr>
Sender: owner-tiff@olympiakos.com
Status: RO
Content-Length: 1343
Lines: 37

Seydou,

> I'm using the libtiff version v3.5.6 (Beta) under MSVC++ 6.0.
> I get this following message while trying to open a tiff file with the
> instruction TIFF* tiff = TiffOpen(myFile,"r"):
> Undhandled exception in myAppli.exe (NTDLL.DLL): 0xC0000005: Access
> violation.
> Most of my tiff files work correctly with the instruction above, but
others
> don't. All the files have the same attributs and the same compression
> algorithm.

You haven't really given people much information to work with.  And
access violation simply means you're trying to read or write to memory
that doesn't belong to your application.  This could be caused by any
number of things.  What steps have you taken to isolate the problem?  I
recommend you try something like this in your code...

TIFF* tiff = TiffOpen(myFile,"r"):

if (tiff ){
  TIFFClose(tiff );
}

return;

Don't write a new application, just stick this code into your existing
application and see what happens.  You need to first verify that all
your other code isn't causing a problem.  Another member on the list
once suggest using "ru" instead of "r" for a similar problem.  You could
give that a try as well.  Finally, can you open the file in question
with another program such as PhotoShop?  Make sure the file isn't
corrupt or screwing things up in some way.

    Thanks,
    PeterM


