I'm trying to do something that (I think) I understand pretty well in the
unmanaged world, but am not sure how to approach from inside the CLR.

I have a server application to which I want to add support for a particular
single-threaded reporting library written using COM.  Requests to the server
application may end up generating one or more requests to this reporting
library.  I'm pretty sure that I want to create a new [STA] thread to "own"
the COM object and listen for requests from other parts of the application
on an internal queue.  But don't know I can ensure that messages are pumped
while I'm waiting on the queue -- and I know from previous experience that
this library requires a working message pump.  In an unmanaged app, I'd be
using MsgWaitForMultipleObjectsEx.  What's the correct approach in the
managed world?

--
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

Reply via email to