TIFFWriteDirectory() fails on network drive

Charles Wilson cygwin@cwilson.fastmail.fm
Sat Feb 1 00:26:00 GMT 2014


On 1/31/2014 3:38 PM, Corinna Vinschen wrote:
> On Jan 31 14:17, Hsu, Justine wrote:
>> The attached program tries to save a blank 64 x 64 TIFF image to specified 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/2732673
>> Here is the relevant code:
>>
>>          TIFF *tif = TIFFOpen(argv[1], "w");

Just a hunch, but maybe your local drivers are mounted in unix mode, and 
the remote is mounted in dos mode.  Use "wb" instead of "w"?

--
Chuck


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list