HighTechTalks DotNet Forums  

Remote WMI, Threading, Errors

Dotnet Framework (WMI) microsoft.public.dotnet.framework.wmi


Discuss Remote WMI, Threading, Errors in the Dotnet Framework (WMI) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Terry Olsen
 
Posts: n/a

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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.