// JP opened flex table

Click to See Complete Forum and Search --> : CFileFind fails to match wildcard


Phil Glover
March 2nd, 2000, 07:12 AM
Hi,

I've been using the CFileFind class in a few applications here, and have noticed the occasional anomaly.

Most of the apps that use it rely upon scanning a directory for files with a given wildcard (such as *.inp) and move/delete a file after processing. These apps are either scheduled tasks running every few minutes, or sometimes contain a thread which 'polls' the directory at 10 second intervals. In either case the CFileFind object is contsructed/destructed in each pass around the loop.

I have witnessed CFileFind to persistently miss a file, even after a restart of the application using it. This has happened about three times in the last six months, but it happened yesterday at a clients site, hence my renewed urgency. The only fix I've seen is to modify the filename slightly.

We're using NT4.0 SP6.0a, VC6 SP3, but I've seen this happen with VC5 (no service pack applied).

Thanks in Advance,
Phil.

//JP added flex table