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 f5F7x3PW028170
	for <dron@localhost>; Fri, 15 Jun 2001 11:59:03 +0400
Received: from eudoramail.com [209.185.123.45]
	by localhost with POP3 (fetchmail-5.8.1)
	for dron@localhost (single-drop); Fri, 15 Jun 2001 11:59:03 +0400 (MSD)
Received: from gate7.olympiakos.com ([207.176.88.85]) by shared1-mail.whowhere.com; Thu Jun 14 22:57:15 2001
Received: from localhost (daemon@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) with SMTP id BAA29886;
	Fri, 15 Jun 2001 01:28:20 -0400
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Fri, 15 Jun 2001 01:27:46 -0400
Received: (from majordom@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) id BAA29817
	for tiff-outgoing; Fri, 15 Jun 2001 01:27:46 -0400
X-Authentication-Warning: gate7.olympiakos.com: majordom set sender to owner-tiff@olympiakos.com using -f
Received: from mta6.snfc21.pbi.net (mta6.snfc21.pbi.net [206.13.28.240])
	by gate7.olympiakos.com (8.9.3/8.9.3) with ESMTP id BAA29813
	for <tiff@olympiakos.com>; Fri, 15 Jun 2001 01:27:43 -0400
Received: from adsl ([216.103.51.136])
 by mta6.snfc21.pbi.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9)
 with SMTP id <0GEY00FBQHTEGC@mta6.snfc21.pbi.net> for tiff@olympiakos.com;
 Thu, 14 Jun 2001 22:27:14 -0700 (PDT)
Date: Thu, 14 Jun 2001 22:27:29 -0700
From: Peter Montgomery <pjmonty@csi.com>
Subject: Re: TIFF PROBLEM
To: tiff@olympiakos.com
Message-id: <006801c0f55b$e1a3a080$0201a8c0@pacbell.net>
MIME-version: 1.0
X-Mailer: Microsoft Outlook Express 5.50.4522.1200
Content-type: text/plain; charset="iso-8859-1"
Content-transfer-encoding: 7bit
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
References: <C1296CBC0380D411BF880000E8E12EC206573A@VOYAGER>
X-Priority: 3
Sender: owner-tiff@olympiakos.com
Status: RO
Content-Length: 1996
Lines: 67

Vishnu,

    Based on the limited information, it's pretty hard to help you.  I
am curious though, have you tried the usual sort of debugging
techniques?  Often people treat libraries as something that's too big to
understand, so they never really try and debug it.  Try stepping through
the code and into the TIFF library to see where the error is occurring.
Insert some debugging code into the library if you need to.  For
example, here's some handy code (and information) from the VC++
helpfile:

The FormatMessage function can be used to obtain error message strings
for the system error codes returned by GetLastError, as shown in the
following sample code.

LPVOID lpMsgBuf;

FormatMessage( 
    FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
    NULL,
    GetLastError(),
    MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
    (LPTSTR) &lpMsgBuf,
    0,
    NULL 
);

// Display the string.
MessageBox( NULL, lpMsgBuf, "GetLastError", MB_OK|MB_ICONINFORMATION );

// Free the buffer.
LocalFree( lpMsgBuf );
 
When you find out where the libretto is having a problem, stick this code in there in codepath that's executed when there is an error.  It'll pop up a dialog box that has a human readable version of the error code returned by the system.  If you derive some more information for the list, perhaps someone here can help you.

    Thanks,
    PeterM


----- Original Message ----- 
From: "vishnu vijayan" <vishnu@sankartech.net>
To: <tiff@olympiakos.com>
Sent: Thursday, June 14, 2001 9:38 PM
Subject: TIFF PROBLEM


> 
> Hello,
> 
> I'm working for a simple Tiff file viewer application in VC++ that can be
> inserted as a control in ASP pages. The Tiff files are not opening in the
> read mode in windows applications but id does open in the console mode.
> 
> TIFF *p;
> p=TIFFOpen("c:\vishnu.tif","R");
> 
> 
> It is not opening and returns NULL?? 
> 
> I'll be greatful to anyone who helps me on this.
> 
> Thanking you
> 
> P.Vishnu Vijayan

>
>

