WMI

Posted By: LCARS | Sep 23rd, 2005 @ 11:41 PM
page 1 of 1
Comments: 2 | Views: 3609
LCARS
LCARS
Hello World!!

I have an application where I will need to display a good bit of system information (ranging from hardware to OS settings). My first thoughts were to use WMI.  However, I have heard of several instances of people experiencing memory leaks and such so im a bit worried. Im also concerned about the query time.

My questions are:

How fast is WMI? Since im going to be making a bunch of queries in a row (could be as much as 50 or so!). Will this take forever?

Also, has anyone else heard of/experienced memory leaks when using WMI?

Thanks a bunch!
Big Smile

mrichman
mrichman
Mark A. Richman
LCARS wrote:

I have an application where I will need to display a good bit of system information (ranging from hardware to OS settings). My first thoughts were to use WMI.  However, I have heard of several instances of people experiencing memory leaks and such so im a bit worried. Im also concerned about the query time.

My questions are:

How fast is WMI? Since im going to be making a bunch of queries in a row (could be as much as 50 or so!). Will this take forever?

Also, has anyone else heard of/experienced memory leaks when using WMI?

Thanks a bunch!
Big Smile



WMI will never be as fast as the low-level Win32 calls it wraps. However, what you gain in convenience may outwiegh that. I wrote an entire IIS provisioning system in C# using WMI without any performance problems or memory leaks. Just use good coding practices and you'll be fine.
Jachin
Jachin
Complexity=Stupidity
I think you should be fine. WMI is fairly robust and the only problem i have seen so far is that windows 2000 sometimes reports incorrect values.
page 1 of 1
Comments: 2 | Views: 3609
Microsoft Communities