By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,667 Members | 1,219 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,667 IT Pros & Developers. It's quick & easy.

How to run message pump in .NET?

P: n/a
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
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.