S
Scott M. Lyon
I've got an application that, in the main form, Starts up a thread. That
thread consists of an endless loop (a WHILE TRUE loop), at the end of each
iteration is a Sleep() command, so it will sleep for 5 seconds between each
run.
I need this thread to poll for some database changes, and update data on the
form when it does.
I've got that part working fine.
What I'm having a problem with, is when I change the value of one of the
controls on my form (in this case a combobox), I want to have it bump it out
of "sleep" mode before the 5 seconds has passed.
However, I cannot figure out how to do this.
Any ideas?
Oh, before it's suggested, I can't just reduce my sleep delay, as I don't
want to bring the database to it's knees from continually calling it.
Thanks!
-Scott
thread consists of an endless loop (a WHILE TRUE loop), at the end of each
iteration is a Sleep() command, so it will sleep for 5 seconds between each
run.
I need this thread to poll for some database changes, and update data on the
form when it does.
I've got that part working fine.
What I'm having a problem with, is when I change the value of one of the
controls on my form (in this case a combobox), I want to have it bump it out
of "sleep" mode before the 5 seconds has passed.
However, I cannot figure out how to do this.
Any ideas?
Oh, before it's suggested, I can't just reduce my sleep delay, as I don't
want to bring the database to it's knees from continually calling it.
Thanks!
-Scott