Hi all,
I've got a tight loop that's iterating through a SQL Result Set
(I'm using SQLTools. Awesome product!). I'm using the sleep(0)
function within the loop and it works great for other apps that
are running. My problem is that I can't move around my app's
window (the window that the loop is occuring in) while the loop
is in process. Also, whenever another app window overlaps my
app's window, my app's window doesn't repaint until after
my loop is finished. How can I prevent this from happening?
Do I need to put my looping code into it's own thread? Is
there an easier or better way? Thanks in advance for your
help!
Cheers,
Scott
I've got a tight loop that's iterating through a SQL Result Set
(I'm using SQLTools. Awesome product!). I'm using the sleep(0)
function within the loop and it works great for other apps that
are running. My problem is that I can't move around my app's
window (the window that the loop is occuring in) while the loop
is in process. Also, whenever another app window overlaps my
app's window, my app's window doesn't repaint until after
my loop is finished. How can I prevent this from happening?
Do I need to put my looping code into it's own thread? Is
there an easier or better way? Thanks in advance for your
help!
Cheers,
Scott
Comment