On Mar 13, 2006, at 8:53 AM, Thom McGrath wrote:
I have some heavy work being done so I created a thread to do it in
and a status sheet to keep an eye on it. My thoughts were that this
would keep the rest of the app generally responsive as I'm not
eating up as much power from the main thread. But what I'm seeing
is not the case. So I'm wondering what I'm doing wrong.
My sheet has a progressbar, and a couple statictexts do display
progress and estimated time remaining. It also has a time that
fires every 1/2 second. This timer asks the thread for a couple of
static properties that the thread updates while it's running. The
timer displays the information on the sheet. The thread is also a
property of the sheet.
What I am seeing is the timer only fires *sometimes* and the app is
very unresponsive. As of this very second, the window still shows
it's in the foreground while I write this message. What am I doing
that would be causing this, or am I being too hopeful?
My guess is that you need to occasionally yield time from your
thread. Although I am not sure why a thread would keep a timer from
firing. That doesn't sound quite right to me.
Kevin
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>