Remote WMI, Threading, Errors -
12-27-2007
, 08:32 AM
I've got a PC audit program I wrote a couple of years ago that audits pc's
across the network by querying the WMI. There was no threading, it queried
one pc at a time, and the program blocked until it had finished. It could
take 2-3 hours for it to complete. It works good.
I decided to update it to use the threadpool. However, If I set the
MaxThreads any greater than 1, I get various errors on a lot of the queries
like "The RPC Server is not available" and "The call was canceled by the
message pump", etc.
So even though my app doesn't block anymore, I still can only query a single
pc at a time. Can anyone shed some light on this issue? |