Run CompareWith on seperate thread
npaterson
Posts: 10
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
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).