Thank you for your reply.
The text is not updated frequently. About 20 short lines are output as the I/O task is initialized, 3 or 4 more lines once a survey has been completed, then nothing until the time consuming I/O work is done. The main thread should have lots of idle time, the I/O thread is very busy.
I'm looking for a way to flush from the main thread.
Mickey.