????key逆?筿福?笆絪腹(100分)

A

ASIAWAN

Unregistered / Unconfirmed
GUEST, unregistred user!
?拜??蔼も???絋?筿福?key逆絪腹,???┮糶┮ぇ祘Α璝??┪
????post,獽穦?瞷'file lock'?岿粇,璝???畉1~2?獽?タ絋絪

 
不知道你写的是不是数据库程序,不管怎样,你的程序中都
应使用如下类似的伪代码:
if 文件已被锁定 then
等待一定的时间,以获得文件的处理权
if 时间到了还未得到锁 then
ShowMessage('超时错误!');
Exit;
if 得到该文件的处理权 then
设置时间计数
处理该文件
读取时间计数
if 时间计数已超过1秒 then Exit
else 等待至足够的时间

你可用Try...Except...来截取'file lock'信息,以确定文件是否被
其它程序或用户锁定。
 
接受答案了.
 

Similar threads

顶部