| Author |
Message |
npaterson
Joined: 02 Oct 2007 Posts: 6
|
Posted: Tue Oct 02, 2007 8:28 pm Post subject: Run CompareWith on seperate thread |
|
|
| I'd like to display a moving progress bar that just displays there is progress while CompareWith is running, I'd imagine that I'd have to run CompareWith on a separate thread to do this? Any idea how to do this? Thanks |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6344 Location: Red Gate Software
|
Posted: Fri Oct 05, 2007 6:03 pm Post subject: |
|
|
Hello,
I don't think you need to run only CompareWith on a separate thread, what you should do is spawn a new thread and put the whole comparison function in that (all the way from database.register to CompareWith) and use the StatusEventHandler delegate in the progress bar's window to upgate the progress bar.
You can add a StatusEventHandler to the database object's Status event and when comparewith runs, the delegate should run whatever function you have specified (ie updating the progress bar). _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group