Page 1 of 1

parameter is incorrect

PostPosted: September 13th, 2006, 10:31 am
by keith
I'm using TFindfile to build a small application to clean disks, I have got an error during scanning, first 'the parameter is incorrect', then 'out of system resources', have you ever had the similar problem? does anyone know how to fix this ?

Thank you very much.

PostPosted: September 14th, 2006, 1:18 pm
by Kambiz
I guess you are using FindFile in threaded mode.

When FileFile is in threaded mode, the events are called within a separate thread (not the main VCL thread). Because of the, the code of event handlers should be thread safe.