Red Gate forums :: View topic - Run CompareWith on seperate thread
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Toolkit Previous Versions
SQL Toolkit Previous Versions forum

Run CompareWith on seperate thread

Search in SQL Toolkit Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
npaterson



Joined: 02 Oct 2007
Posts: 6

PostPosted: Tue Oct 02, 2007 8:28 pm    Post subject: Run CompareWith on seperate thread Reply with quote

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
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6577

PostPosted: Fri Oct 05, 2007 6:03 pm    Post subject: Reply with quote

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).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic 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