2001.06.15 04:38 "TIFF PROBLEM", by Vishnu Vijayan

2001.06.15 05:27 "Re: TIFF PROBLEM", by Peter Montgomery

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