This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: TIFFWriteDirectory() fails on network drive


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]