-
May 5th, 2016, 08:23 AM
#1
How to get rid of "Not Responding" (App Freezing) while copying a large size of data
How to get rid of "Not Responding" (App Freezing) while copying
Hi everyone,
I'd like to get rid of "Not Responding" (App Freezing) while copying a large size of file (over 500 MB).
I tried to use the below options to perform my copy operation :
- FileSystemObject (FSO) 'No recommended for large amount of transfer
- CopyFile and CopyFileEx (API)
- MoveFile and MoveFileEx (API)
- SHFileOperation and IFileOperation (API)
unfortunately all of them are still giving me that issues of "Not Responding / App Freezing" if I click on the Form when copy is in progress.
Any help appreciated!
-
May 5th, 2016, 12:02 PM
#2
Re: How to get rid of "Not Responding" (App Freezing) while copying a large size of d
You need to pick and implementation that gives you a progress callback. MoveFileEx has this functionality as well as the ShFileOperation replacement IFileOperation (using the Advise method).
Within the callbacks, you'll need to make a call to DoEvents(). This will cause the message pump in the application to process messages so you won't get the "Not responding..." message.
-
May 6th, 2016, 01:54 PM
#3
Re: How to get rid of "Not Responding" (App Freezing) while copying a large size of d
This article:
http://www.codeguru.com/vb/controls/...le.php/c12917/
Will help you copy large files without problems.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|