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

Asynchronous method calls on COM components?

P: n/a
Group,
I'm writing a dotnet windows service that will create and maintain a
collection of COM components. These components all implement the same
interface, and some are written in VC++ 6 and some written in C#
(registered for COM interop). Once every minute, the windows service
will need to call an "Execute" method on each component in the
collection, and here's the thing: I need those method calls to happen
asynchronously. So they should all start at (more or less) the same
time and run concurrently.

Right now what I'm looking at for this is storing the objects in a
collection class e.g. ArrayList, then for each one, I would call its
"Execute" method via a QueueUserWorkItem call. But I'm worried that
this may not be the best, or most efficient way to do this. What are
the options for such a service, and what would you recommend?

Thanks,
John

Jan 31 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.