[Migrated content. Thread originally posted on 15 October 2008]
I'm trying to develop a progress bar subroutine. The basic concept is that the subroutine is run in a thread, wakes up every so often and displays it progress. Progress might be expressed in times or "ticks".Anyway, the guts of this are to wake up every so often and do something on the screen. I've tried using C$SLEEP and a time out on an ACCEPT, but neither seems to accomplish the task. The subroutine is CALLed IN THREAD, which (I think) should allow it to keep running while the main program runs too. What I get when I run this and WAIT on the thread is behavior exactly as I want. What I get when I run this and continue to do work in the main program is the progress bar window with 0 progress shown, and no change over timing. This appears to indicate that the subroutine thread is never getting dispatched, perhaps because it is C$SLEEPing. That's why I tried the ACCEPT time out, but that behaves the same way. I've also tried setting the thread priority to the 32767, but no joy.
Anyone have any ideas on this? BTW, this is with AcuCOBOL 6.2.
Bill Diener



