Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
AnswerRe: Properties and objects (question about speed)? Pin
Daniel Turini23-Jan-03 1:13
Daniel Turini23-Jan-03 1:13 
QuestionSSH From C# classes? Pin
cwkingjr22-Jan-03 17:57
cwkingjr22-Jan-03 17:57 
AnswerRe: SSH From C# classes? Pin
David Stone22-Jan-03 18:33
sitebuilderDavid Stone22-Jan-03 18:33 
GeneralC# arrays Pin
Nick Blumhardt22-Jan-03 17:26
Nick Blumhardt22-Jan-03 17:26 
GeneralRe: C# arrays Pin
Nick Blumhardt22-Jan-03 20:36
Nick Blumhardt22-Jan-03 20:36 
GeneralWMI and C# Pin
Bo Hunter22-Jan-03 14:29
Bo Hunter22-Jan-03 14:29 
GeneralRe: WMI and C# Pin
David Stone22-Jan-03 18:38
sitebuilderDavid Stone22-Jan-03 18:38 
GeneralRe: WMI and C# Pin
thematt23-Jan-03 11:02
thematt23-Jan-03 11:02 
I am assuming you are using WMI to get the network status. The problem you may be that certain adapters do not have an actual instance when you check the status. For example the WAN Miniport (PPTP) will not have a status all the time (if it does at all). WHen you loop through your ManagementCollection you will get a NullReferenceException -
Bo Hunter wrote:
object ref not set to an instance

object ref not set to an instance. To get around this you should catch the error, or narrow your WQL. If there is a certain adapter you are checking for let me know. I will post some code. I hope this is along the lines of what you are after.

Matt is a network administrator for an insurance company in the midwest. He is shamelessly looking for Windows programming side work.
GeneralGetting current assembly path Pin
Luis Alonso Ramos22-Jan-03 9:12
Luis Alonso Ramos22-Jan-03 9:12 
GeneralRe: Getting current assembly path Pin
David Stone22-Jan-03 9:36
sitebuilderDavid Stone22-Jan-03 9:36 
GeneralRe: Getting current assembly path Pin
Luis Alonso Ramos22-Jan-03 9:57
Luis Alonso Ramos22-Jan-03 9:57 
GeneralSystems Analysis and Design Pin
Jassim Rahma22-Jan-03 6:38
Jassim Rahma22-Jan-03 6:38 
GeneralRe: Systems Analysis and Design Pin
SimonS24-Jan-03 0:48
SimonS24-Jan-03 0:48 
GeneralDrawText : what is similer with Win32SDK - DT_CENTER Pin
Wizard_@22-Jan-03 6:23
sussWizard_@22-Jan-03 6:23 
GeneralDB2 Connection using C# Pin
Jassim Rahma22-Jan-03 4:01
Jassim Rahma22-Jan-03 4:01 
GeneralRe: DB2 Connection using C# Pin
Vasudevan Deepak Kumar23-Jan-03 1:01
Vasudevan Deepak Kumar23-Jan-03 1:01 
GeneralRe: DB2 Connection using C# Pin
Jassim Rahma23-Jan-03 6:20
Jassim Rahma23-Jan-03 6:20 
GeneralRe: DB2 Connection using C# Pin
Vasudevan Deepak Kumar23-Jan-03 19:05
Vasudevan Deepak Kumar23-Jan-03 19:05 
GeneralRe: DB2 Connection using C# Pin
Jassim Rahma24-Jan-03 2:01
Jassim Rahma24-Jan-03 2:01 
GeneralRe: DB2 Connection using C# Pin
Vasudevan Deepak Kumar24-Jan-03 3:30
Vasudevan Deepak Kumar24-Jan-03 3:30 
GeneralRe: DB2 Connection using C# Pin
Jassim Rahma27-Jan-03 9:03
Jassim Rahma27-Jan-03 9:03 
GeneralRe: DB2 Connection using C# Pin
Vasudevan Deepak Kumar27-Jan-03 18:31
Vasudevan Deepak Kumar27-Jan-03 18:31 
GeneralRe: DB2 Connection using C# Pin
Jassim Rahma4-Feb-03 22:48
Jassim Rahma4-Feb-03 22:48 
GeneralRegular Expression Help! Pin
dturton22-Jan-03 2:16
dturton22-Jan-03 2:16 
GeneralRe: Regular Expression Help! Pin
Daniel Turini22-Jan-03 3:14
Daniel Turini22-Jan-03 3:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.