15,902,862 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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.