parameter is incorrect

Please discuss general Delphi programming topics here.

parameter is incorrect

Postby keith » September 13th, 2006, 10:31 am

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.
Free Capture& pc sweeper
http://www.xerp.cn
support@xerp.cn
keith
Member
Member
 
Posts: 1
Joined: September 13th, 2006, 8:45 am

Postby Kambiz » September 14th, 2006, 1:18 pm

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.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 19 guests

cron