Too Many Open Files (was Re: The CLOSE command)
John Esak
john at valar.com
Fri Feb 17 20:37:09 PST 2006
> Ah, but why not have filepro do it automatically?
> There are many instances where filepro does the
> reasonable thing - such as automatically protecting
> lookups when a write occurs.
>
> In my opinion most filepro programmers are "close
> happy". By that I mean they issue unnecessary closes
> to files all the time - often just to use it again
> soon after the close - instead of letting filepro
> handle the closing where it can and should.
>
I totally agree. I simply never use CLOSE unless there is a specific reason
to do so. I have *very* few CLOSE statements in millions of lines of code.
As for the why shouldn't filePro do the closing automatically, on this we
disagree. FilePro shouldn't do much of anything it isn't specifically told
to do. Just a working paradigm. I'd always rather have control of things
like this, and putting CLOSE's where I want them is just like putting
WRITE's where I want them. I know there is no relationship at all, and this
may be a bad analogy, but I wanted to say something and couldn't think of
anything better. :-)
John
More information about the Filepro-list
mailing list