Mail Archives: djgpp-workers/2001/10/11/18:03:25.1
> You had asked about the question of when our internal findfirst
> closes the handle for you because there were no wild cards.
> In that case _findclose would be able to recognize it as already
> being closed and do nothing.
I was thinking of the other case for which the handle is automatically
closed: when findnext() doesn't find any more files, it closes the handle.
This behaviour could potentially break the example I gave, if _findfirst()
was living on top of findfirst().
> This may be the best fix. I believe Eli also said this might be the way
> to go. However, it depends on how much time and effort you are willing to
> spend. I personally would not object to putting your current versions
> into the the library.
I don't think that coding it would require me to spend more than six nights
at a stretch on my keyboard, and given that my limit is seven... ;-)
--
Eric Botcazou
ebotcazou AT multimania DOT com
- Raw text -