The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: shadow on June 29, 2005, 04:36:22 AM

Title: The window Freezes!?
Post by: shadow on June 29, 2005, 04:36:22 AM
When I use CopyFile to copy large files (1Gb), the window of my program freezes while the file is being copied.  How can I prevent this?
Title: Re: The window Freezes!?
Post by: hutch-- on June 29, 2005, 04:50:13 AM
This is normal in a single thread application. To solve the problem do the copy in a seperate thread and have it advise the calling thread whn its finished.
Title: Re: The window Freezes!?
Post by: shadow on June 29, 2005, 05:08:58 AM
thanks!  heh thats what multiple threads are for!  hmm looks like i'm going to have to do a little more reading. :wink