Skip Menu |

This queue is for tickets about the Win32-UTCFileTime CPAN distribution.

Report information
The Basics
Id: 65095
Status: resolved
Priority: 0/
Queue: Win32-UTCFileTime

People
Owner: Nobody in particular
Requestors: cully.larson [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Win32-UTCFileTime: too many files open
Date: Mon, 24 Jan 2011 21:58:20 -0800
To: bug-Win32-UTCFileTime [...] rt.cpan.org
From: Cully Larson <cully.larson [...] gmail.com>
Hey, I have a program that resizes and exports a bunch of photos to a website. The mtime stamp of the photo is significant (for syncing purposes). So, I use stat() to get the original mtime of the photo, and then, after resized, utime() to set it. The scripts runs on Windows, so I was using the Win32-UTCFileTime library to make sure I'm getting UTC stamps. This script will resizes thousands of photos. After I started using the Win32-UTCFileTime library, I started getting an error when opening the photo files (after resizing a little over 2000 photos). I looked into it and realized that my version of Windows limits open files to a little over 2000 (a script that have that many open). I hunted around the script, making sure that all of my files were explicitly closed. They were. On a hunch, I commented out the use Win32-UTCFileTime line, and the script ran fine. So, my assumption here is that Win32-UTCFileTime (stat or utime) doesn't close the files it opens. Let me know if you have any questions. I'm running this with the latest versions of ActivePerl and Win32-UTCFileTime, on Windows Server 2003. Cully
Thank you for the report, and my sincere apologies for having taken so long to get round to looking at it. There was indeed a bug in the replacement utime() function. I've just uploaded version 1.54 with a fix for this.
Subject: Re: [rt.cpan.org #65095] Win32-UTCFileTime: too many files open
Date: Tue, 6 Mar 2012 12:39:31 -0800
To: bug-Win32-UTCFileTime [...] rt.cpan.org
From: Cully Larson <cully.larson [...] gmail.com>
Glad to help. Cully On Mon, Mar 5, 2012 at 5:33 AM, Steve Hay via RT < bug-Win32-UTCFileTime@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=65095 > > > Thank you for the report, and my sincere apologies for having taken so > long to get round to looking at it. > > There was indeed a bug in the replacement utime() function. I've just > uploaded version 1.54 with a fix for this. >