View Single Post
Old Jul 5th, 2007, 7:20 PM   #6
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
The Click event is called from the message loop. Control will not return to the message loop until BackUp returns, and it's going to take a while. Since the form can not process messages until then, you cannot interact with it and it will shortly be reported as unresponsive as a result of the queue filling up. The best solution would be to move the backup operations to a separate thread. Look in to the BackgroundWorker component. You will of course need to be wary of synchronization issues.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote