OPENDIR number of files problem
John Esak
john at valar.com
Wed Oct 8 15:12:10 PDT 2008
Yes, this is really strange. Ken and I worked this out on my system last
week. You can get around the opendir truncation to 3 digits by just using
@dirlist_rfilename["0"] (or any of the @dirlist variants) as the correct
number of opened files.
The *fact* that something can lie dormant like this for a decade... then
hits me... and within the same couple days a week it hits someones else.
Absolutely amazing. Who had this problem after I found it a couple weeks
ago? Was it you Bruce?
I mentioned this behavior to no one outside of my IT group. I always say
this reminds me of Star Trek's "hodgekiss Paralle Planet Development"
theory... or some such. It was mentioned in the stupidest episode ever ...
the one about the Yangs and the Comes.... :-) The Yankees and the
Communists. It's amazing what actually gets into production... when I, at
least, have written a half dozen infinitely better scripts... not too
mention the hundreds and thousands of other published and non-published
authors in the world. Just strange... and disheartening...
I'm curious, if this was you, Bruce... did it actually just happen to you
also??? When I worked with Ken on it, just recently... and we (he) found
the error... (but I pointed to the idea of what was happening by talking
about some limit in opendir(), so I feel pretty good about sleuthing it out
far enough for Ken to see it quickly... and presenting him with a table that
would produce the error immediately.) Meanwhile, my situation also had over
2,000 files. 2780 roughly. It just all sounds so similar to what happened
to you... and in the same week... really one of those hard-to-believe
things. Maybe Lee Machan told someone about it... I had emailed him
regarding it... but he is in the IT group I work in now. I know the others
don't have too much contact with the filePro community.
It's all just pretty strange.
John
> -----Original Message-----
> From: filepro-list-bounces+john=valar.com at lists.celestial.com
> [mailto:filepro-list-bounces+john=valar.com at lists.celestial.com] On Behalf
> Of Bruce Easton
> Sent: Wednesday, October 08, 2008 4:26 PM
> To: filepro list
> Subject: RE: OPENDIR number of files problem
>
> Kenneth Brody Wednesday, October 08, 2008 4:02 PM:
> >
> > Quoting Bruce Easton (Wed, 8 Oct 2008 15:33:18 -0400):
> >
> > > Maybe someone has seen this before. I'm running fp 5.0.13 on a
> > SCO system
> > > and for a directory that has 2180 files in it matching ".csv", OPENDIR
> > > returns 180, dropping the leading digit. If there are 2181 files in
> the
> > > directory, it will return 181 (returning this value into a dummy field
> > > declared as (5,.0). (I found out these values using the
> > debugger.) There is
> > > no automatic processing seen by this process.
> > [...]
> >
> > Why is it that things like this lay hidden for years, only to be found
> by
> > several people all at the same time?
> >
> > OPENDIR() returns a (3,.0) value, which is basically the value mod 1000.
> > If you have more than 999 matching filenames, the value will be wrong.
> > This will be fixed in the next update.
> >
> > In the meantime, you can use @DIRLIST["0"] to get the correct count.
> >
> > --
> > KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001
>
> Thanks, Ken - Marcia is the one who showed me something
> was up on a system she's supporting that captures RFID
> readings - I saw all those files in one directory
> and told her 'all these I-nodes aren't free, you know!' :)
>
> Bruce
>
> Bruce Easton
> STN, Inc.
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
More information about the Filepro-list
mailing list