How to run message pump in .NET?

  • Thread starter Thread starter Jianxin
  • Start date Start date
J

Jianxin

Hi, all,

Can I run message pump in C# to yield cotrol to other
window messages while my main thread is waiting for
lengthy procesing to finish?

In C++, PeekMessage(), TranslateMessage(), and
DispatchMessage() will do the job. For some reason, this
seems not working in managed C++.

Any suggestions?

Thanks in advance.

Jianxin
 
Simple, spawn a new thread to run your "lengthy processing", a UI thread shouldn't do anything else than handle the UI.

Willy.

Jianxin wrote:
|| Hi, all,
||
|| Can I run message pump in C# to yield cotrol to other
|| window messages while my main thread is waiting for
|| lengthy procesing to finish?
||
|| In C++, PeekMessage(), TranslateMessage(), and
|| DispatchMessage() will do the job. For some reason, this
|| seems not working in managed C++.
||
|| Any suggestions?
||
|| Thanks in advance.
||
|| Jianxin
 
Back
Top