Re: Executing a method in a given thread context
- From: "Francois PIETTE" <fpiette@xxxxxxxxxxxxxxxxx>
- Date: Tue, 8 Aug 2006 18:23:46 +0200
Application.Run(hiddenForm);
Wouldn't this make the message pump work in the UI thread ?
No. It starts a new message pump on the current (calling) thread.
Looking at the code for Application.Run(Fomr) using Reflector, I see that
this method is doing much more than a simple message loop. This would result
in poor performance and maybe cause trouble with the mainform is used from a
worker thread. LocalModalMessageLoop looks promising but it still does too
much for a worker thread message pump.
--
Francois PIETTE
http://www.overbyte.be
.
- Follow-Ups:
- Re: Executing a method in a given thread context
- From: "Jeffrey Tan[MSFT]"
- Re: Executing a method in a given thread context
- References:
- Executing a method in a given thread context
- From: Francois PIETTE
- Re: Executing a method in a given thread context
- From: AJ
- Re: Executing a method in a given thread context
- From: Francois PIETTE
- Re: Executing a method in a given thread context
- From: Francois PIETTE
- Re: Executing a method in a given thread context
- From: Francois PIETTE
- Re: Executing a method in a given thread context
- From: AJ
- Executing a method in a given thread context
- Prev by Date: Re: Executing a method in a given thread context
- Next by Date: Reflection, how to tell the complexity of the type???
- Previous by thread: Re: Executing a method in a given thread context
- Next by thread: Re: Executing a method in a given thread context
- Index(es):
Relevant Pages
|
Loading