| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:date:from:to:subject:message-id:reply-to | |
| :references:mime-version:content-type:in-reply-to; q=dns; s= | |
| default; b=ngFFchpokmdZ5ochwpwaOhEC5Pf+0/zfWYlTCb79XX8gh+kgisemH | |
| vkg+yDRdACiWMFFAR8eq8uvKfmNd1T6a5YJ7csJWGL/eQxgS8lDoTy85ruMo8peK | |
| oWDWwOFsm0drmWJqZv3CC48BR1xiSm9Pj4GrjeobaS67kgki6l/Rac= | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:date:from:to:subject:message-id:reply-to | |
| :references:mime-version:content-type:in-reply-to; s=default; | |
| bh=RhhbWy8OsNqvL/9FE2BO8EeY3hs=; b=cZZw7z1M4t6HIx1EmxHEMU4s0day | |
| OjCsQ458wOzTzpzYyEbBvLT57qrmqdvFRdjLsPTy2f4Z10xbA5HflzmzSxutiblg | |
| ZZHbLWV5CrX0q0SgTtg/WJvll1AmUJLmh96sljIsxk+z5YjYChVL9zxtxd63OBas | |
| Jy5dgptBdB6xowc= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Authentication-Results: | sourceware.org; auth=none |
| X-Virus-Found: | No |
| X-Spam-SWARE-Status: | No, score=-6.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 |
| X-HELO: | calimero.vinschen.de |
| Date: | Fri, 31 Jan 2014 21:38:10 +0100 |
| From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: TIFFWriteDirectory() fails on network drive |
| Message-ID: | <20140131203810.GB8707@calimero.vinschen.de> |
| Reply-To: | cygwin AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <9C9CA6EA23F2394D9A524E7F16235E1201017D85 AT srv1163ex1 DOT flightsafety DOT com> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <9C9CA6EA23F2394D9A524E7F16235E1201017D85@srv1163ex1.flightsafety.com> |
| User-Agent: | Mutt/1.5.21 (2010-09-15) |
--+pHx0qQiF2pBVqBT
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Jan 31 14:17, Hsu, Justine wrote:
> The attached program tries to save a blank 64 x 64 TIFF image to specifie=
d path.
> When the path specified is local, the images saves fine.
> If the path is on a network drive on a Windows7, then it saves a corrupt =
file, even after applying this hotfix http://support.microsoft.com/kb/27326=
73=20
> Here is the relevant code:
>=20
> =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0const int dim =3D 64;
> =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0const int channels =3D 3;
>=20
> =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0TIFF *tif =3D TIFFOpen(argv[1]=
, "w");
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 TIFFSetField(tif, TIFFTAG_IMAG=
EWIDTH,=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 dim);
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 TIFFSetField(tif, TIFFTAG_IMAG=
ELENGTH,=C2=A0=C2=A0=C2=A0=C2=A0 dim);
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 TIFFSetField(tif, TIFFTAG_SAMP=
LESPERPIXEL, channels);
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 TIFFSetField(tif, TIFFTAG_ROWS=
PERSTRIP,=C2=A0=C2=A0=C2=A0 1);
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 TIFFSetField(tif, TIFFTAG_BITS=
PERSAMPLE,=C2=A0=C2=A0 8);
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 TIFFSetField(tif, TIFFTAG_PLAN=
ARCONFIG,=C2=A0=C2=A0=C2=A0 1);
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 TIFFSetField(tif, TIFFTAG_PHOT=
OMETRIC,=C2=A0=C2=A0=C2=A0=C2=A0 PHOTOMETRIC_RGB);
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 TIFFSetField(tif, TIFFTAG_COMP=
RESSION,=C2=A0=C2=A0=C2=A0=C2=A0 COMPRESSION_LZW);
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=20
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0int i;
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 for (i =3D 0; i < dim; i++)
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 {
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 TIFFWr=
iteScanline(tif, buf + dim*channels*(dim - i - 1), i, 0);
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0}
>=20
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0TIFFWriteDirectory(tif);
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 TIFFClose(tif);
And this question is is Cygwin-related, because...?
Corinna
--=20
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
--+pHx0qQiF2pBVqBT
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBAgAGBQJS7AmyAAoJEPU2Bp2uRE+gA/MQAIrXVurQPP4W212FE9N9TFRW
Bf6pVZt7zIvrclkl6S3D6BxnDw9myDEnwNvJgNGsPhPWLSE9cT1uZG5eehKDlTNP
6AsBFQ6Qlcg0ymro0hdgaLb6gPpJGZFdajyMRe0jFC05HxdJXRoYxdIv7iMOopAL
IZDw5vPmaAJECM5IYkGoNUjX72QnmLygnhGM+cmYFIAlNflIbdFjMQvr2FQgZru0
bYyEdr51CSRFodhf505sFMX+FaLzETfQBr9disClQQUm4W6TuaDYkPtChsN1jSLk
VVNea1aB4NjeBvucqAq3QR4pDOF5d/wBYTN+OX9V3F/SwaT6k4NtC7nFFyYm85G9
eAjwzXl7CVXCMLOHfm5WAMOAbLHHNWNYFCLSR+URsMDqx1QWuOYs6TUuBU9J8pRE
aro5pLBPlAVhWNsl1Eu94RV+1tMhV2ArqNzg7wL9sfDPJIeR+oS+jsM0Dg89KKAF
HGPHlz+y3qwRJ+3wzLzUa9QHkRR5ndrj/J4UJagzXWSSK8oUKTFNrkuLTNlF94MR
X/+bt2nN0x8sb/Rwusdh6YOri55i73up1+eaTyKUPcJw+anLxQpwcMLvLBljqB6w
iIzQoCXP9o4tJVukzp6u/QxKXc2zEudo/Xg+doNLoGv9tWa+r4PnoRWOjbH5AhG4
fz47FMVlL6EQ/5iuD5B6
=pDkQ
-----END PGP SIGNATURE-----
--+pHx0qQiF2pBVqBT--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |