StrataFrame Forum

ThreadManager

http://forum.strataframe.net/Topic16624.aspx

By Larry Caylor - 5/27/2008

How do you hadle something like progress messages from threads created through the SF ThreadManager control back to the main (UI) thread. I don't see a thread communication facility in ThreadManager.

-Larry

By Trent L. Taylor - 5/27/2008

Well, you could create a delegate that you communicated with through the spawned thread back to the main thread.  At present we do not have a common method to do this for you..however, if you are just calling one or two threads and want to talk back, you could use a BackgroundWorker control.  It does have the delegate pre-plumbed which would allow you to talk through the ReportProgress event.
By Edhy Rijo - 2/25/2009

Trent L. Taylor (05/27/2008)
... you could use a BackgroundWorker control.  It does have the delegate pre-plumbed which would allow you to talk through the ReportProgress event.

Hi Trent,

Is there a plan to support the ReportProgress event in the ThreadManager component?

By Trent L. Taylor - 2/26/2009

Yeah, at some point this will probably make it in there.  But it is nit very high on the list at the moment.  We are going to rework this class altogether and add a lot of functionality down the road, which will include a pass through delegate which allows you to "report" the progress on the main thread.