A Threaded Question... Where's my needle.
Posted on 2001-07-10
I've been programming for a few years now, and I am starting to think about threads. I know I am really slow in taking this up, but up until today, I have really had no use of them, which means I haven't done much reading on them.
This question is in two parts. The first part is, can anyone tell me, if I have an app which is fairly CPU intensive (ie, losts of DB calls), can I use a thread to write back to a label with an expected completion time, and actually get that label to update - even while the main app is still churning away?
The other part is, can someone give me a simple example of how I would do this? I've played around for the last couple of days and managed to get one going (just adding the time to the caption bar of the main form), but when I start doing something intensive on the app side, the thread stops working until the app stops working.
Thanks for any help/info.
(PS. I'll split the points in half - 150 each - for each part if answered by two seperate people)