DelphiFAQ Home Search:

What is FindClose good for? (FindFirst/ FindNext..)

 

commentsThis article has not been rated yet. After reading, feel free to leave comments and rate it.

(This applies only to Windows 95/ Windows NT)

Every time the function FindFirst is called, a Windows handle is requested.
If you do not release this handle using FindClose, you may end up having
spent all handles and you cannot access directories anymore.

Attention:
A known behavior of NT: Calling FindClose after an UNsuccessful FindFirst can hang the system.
Only call FindClose if FindFirst was successful.

Comments:

2008-09-11, 21:41:43
anonymous from China  
相当于,使用了一个现成的结构体。
运行有些慢,,不知道是什么原因 当于,使用了一个现成的结构体。
运行有

 

 

Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option.
 
It seems that you are
from Los Angeles, US .

Info/ Feedback on this

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:
photo Add a picture:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity. The owner of this web site reserves the right to delete such material.