On 7/31/06, Ian Griffiths <[EMAIL PROTECTED]> wrote:
If you're in an STA, then the WaitHandle class's WaitOne and WaitAny methods will pump messages for you while they block. It'll actually use CoWaitForMultipleHandles under the covers.
Excellent. Thanks! I'd forgotten all about the Co version, too.
Of course there's a horrible flaw in both CoWaitForMultipleHandles and MsgWaitforMultipleObjectsEx: if you do a 'wait all' and there's a message pump involved, it'll only return when all the handles are signaled *and* you've got at least one message waiting for you in the call.
Yeah, I remember my extreme surprise the first time I read about that... -- Curt Hagenlocher [EMAIL PROTECTED] =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
