Run CompareWith on seperate thread

Forum for users of SQL Toolkit 3,4,and 5

Run CompareWith on seperate thread

Postby npaterson » Tue Oct 02, 2007 7:28 pm

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
Posts: 6
Joined: Tue Oct 02, 2007 2:41 pm

Postby Brian Donahue » Fri Oct 05, 2007 5:03 pm


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
Posts: 6590
Joined: Mon Aug 23, 2004 9:48 am

Return to SQL Toolkit Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests