2014.07.16 13:53 "Re: [Tiff] Error while opening tiff - fstat64.c", by Bob Friesenhahn
On Wed, 16 Jul 2014, h4ever wrote:
> I have downloaded the libtiff library as part of SDL2 package, but I it separately. There is a test file named ascii_tag.c test
> which I am testing.
> It creates file ascii_test.tiff. But maybe the file is not correct the following command crashes - breaks. because
> There is a line
> tif = TIFFOpen(filename, "r");
> and it breaks here when I run the program. Filename is:
> static const char filename = "images/ascii_test.tiff";
> the file exists on disk, because the program just create it and closed the file handler.
> The error I got:
> Debug assertion failed... program name... File: (and this is the strange thing![/b]) > f:\dd\vctools\crt_bld\self_x86\crt\src\fstat64.c
> Why it displays this path? I did not added this path to project so why tries to call this file? I have installed VC in it
> different location and running x86 32bit machine.
All of the involved code needs to be compiled with consistent options.
I have heard that Visual Studio 2010 is more fragile (than earlier releases) when it comes to stdio since its ABI changes based on build options. The debug assertion is to the implementation source code of the CRT library which comes with Visual Studio. If you have the source code (does seem to come with purchased versions), then it is supposed to help debug the problem.
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/