开发者

Issue with Listing Files During Load Event

开发者 https://www.devze.com 2023-04-13 02:25 出处:网络
I created a program that lists all the files you have in a certain(select-able) directory with the file extensi开发者_如何学Goon \".pdf\" and allows the user send these files to a network drive.

I created a program that lists all the files you have in a certain(select-able) directory with the file extensi开发者_如何学Goon ".pdf" and allows the user send these files to a network drive.

For some reason it works great on every computer except for one and takes about 10 minutes to load.

Is there any way to see what is happening on their side and why it might be hanging up.


Don't list the files in Form_Load event. On a slow fragmented disk it can take longer to list the files.

Do it in BackgroundWorker


The user had a vast amount of files on his directory therefore searching all these file was the issue.

0

精彩评论

暂无评论...
验证码 换一张
取 消