Re: Intermittent work in UI thread



Hi Joseph,

Yes, I agree that using the build-in message queue of the GUI thread will
make us a bit easy for coding. But, as the OP stated, he wanted to keep the
UI responsive, so I assume that he will show visible windows. Then, this
depends on whether his background work is length or not. If the background
work will cost a lot of time, it definite will block the GUI message
dispatching which causes non-responsible for this UI thread. Sure, we may
use PeekMessage to lighten this problem.

Anyway, this depends on the OP's specific scenario. Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • Re: Threading Callback
    ... you want to update a control. ... | how can I get my class to raise the CallbackEvent on the main GUI thread ... |> Microsoft Online Community Support ... |> where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework)
  • RE: Sleep in C++/CLI
    ... Yes, per your requirement, you may get it done by calling the static ... GUI thread responsible. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.vc)
  • RE: Threading Callback
    ... how can I get my class to raise the CallbackEvent on the main GUI thread as ... knowledge of the control. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework)
  • RE: Problem when showing MdiChild form
    ... Yes, by using your code snippet, I can reproduce this behavior. ... GUI thread in OnMdiChildActivate method. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.vb)
  • RE: FaxSendDocument blocking
    ... synchronously which hangs the main GUI thread, ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.win32.programmer.kernel)

Loading