Click here to Skip to main content
15,902,862 members

Comments by Rand Ruggles (Top 3 by date)

Rand Ruggles 19-Oct-12 7:35am View    
Hello,
Based on your code snippet, what I am seeing is when the Remove loop is executing, every OTHER Control in the COntrols Collection is being removed. Perhaps you should try rewriting your loop so it steps from the tail towards the fron and use RemoveAt() to clear the full collection in sequence.
Rand Ruggles 10-Oct-12 10:32am View    
Thank You Zoltan. I did some more digging last night and this morning. I am dev/testing this on my laptop to minimize the port count, and I was making a bad assumption that I would only have to iterate through a query result of about three adapters. The code is actually returning a query result of 23!
Rand Ruggles 9-Oct-12 17:42pm View    
Hello Zoltan, and thank you on two fronts. I just tried the code you submitted, and it was behaving very slugishly, even for COM objects. And when it came back, it was basically reporting nothings as it seemed some of its functionality was timing out when I was walking through the object trees. I have used that code with a different query that worked as far as pulling up info on each of the adapters. Yet leasing info was not in the set for each NIC. Please realize my little app is designed to run on the client, and just interogate client resources if at all possible, not sitting on the server and sorting through everything up there.