Run CompareWith on seperate thread

npatersonnpaterson Posts: 10
edited October 5, 2007 1:03PM in SQL Toolkit Previous Versions
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

Comments

  • Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    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).
Sign In or Register to comment.