Click here to Skip to main content
15,887,365 members
Home / Discussions / C#
   

C#

 
QuestionRe: MAC ADDRESS Pin
sanforjackass12-Jul-09 22:21
sanforjackass12-Jul-09 22:21 
AnswerRe: MAC ADDRESS Pin
dan!sh 12-Jul-09 22:46
professional dan!sh 12-Jul-09 22:46 
GeneralRe: MAC ADDRESS Pin
sanforjackass12-Jul-09 22:48
sanforjackass12-Jul-09 22:48 
GeneralRe: MAC ADDRESS Pin
dan!sh 12-Jul-09 22:55
professional dan!sh 12-Jul-09 22:55 
QuestionRe: MAC ADDRESS Pin
sanforjackass12-Jul-09 22:57
sanforjackass12-Jul-09 22:57 
AnswerRe: MAC ADDRESS Pin
dan!sh 12-Jul-09 23:00
professional dan!sh 12-Jul-09 23:00 
QuestionRe: MAC ADDRESS Pin
sanforjackass12-Jul-09 23:29
sanforjackass12-Jul-09 23:29 
AnswerRe: MAC ADDRESS Pin
J4amieC13-Jul-09 0:08
J4amieC13-Jul-09 0:08 
The key here is debugging. It is a skill you must learn if you want to learn programming.

First thing to do is set a breakpoint on any of the lines above the foreach(..). Then start the programming in debug mode, I use F5, but you can do it from the menu if you prefer.

Then when the code stops at your breakpoint, begin examining the object's in scope paying attention to see if any are null. Im guessing it could be that theCollectionOfResults is null based on the location of the error, but you should see for yourself.

When you know what is null, you can work backwards to see which specific line of code is not behaving as you expect. It may be that you dont have permissions to read the MACAddress of the specified computer, it may be that that computer is unable to give you a MACAddress (you used to need a network adapter to have a MACAddress - this might not be true now).

I hope that helps.

good day.
AnswerRe: MAC ADDRESS Pin
Henry Minute13-Jul-09 0:10
Henry Minute13-Jul-09 0:10 
QuestionRe: MAC ADDRESS Pin
sanforjackass13-Jul-09 0:39
sanforjackass13-Jul-09 0:39 
AnswerRe: MAC ADDRESS Pin
Henry Minute13-Jul-09 0:45
Henry Minute13-Jul-09 0:45 
AnswerRe: MAC ADDRESS Pin
#realJSOP13-Jul-09 1:02
mve#realJSOP13-Jul-09 1:02 
AnswerRe: MAC ADDRESS Pin
#realJSOP13-Jul-09 2:15
mve#realJSOP13-Jul-09 2:15 
AnswerRe: MAC ADDRESS Pin
#realJSOP13-Jul-09 1:04
mve#realJSOP13-Jul-09 1:04 
AnswerRe: MAC ADDRESS Pin
#realJSOP13-Jul-09 0:28
mve#realJSOP13-Jul-09 0:28 
QuestionRe: MAC ADDRESS Pin
sanforjackass13-Jul-09 0:43
sanforjackass13-Jul-09 0:43 
AnswerRe: MAC ADDRESS Pin
#realJSOP13-Jul-09 1:00
mve#realJSOP13-Jul-09 1:00 
QuestionStore updated data from datagridview to sqlserver2000 Pin
elci12-Jul-09 21:13
elci12-Jul-09 21:13 
AnswerRe: Store updated data from datagridview to sqlserver2000 Pin
dan!sh 12-Jul-09 21:31
professional dan!sh 12-Jul-09 21:31 
GeneralRe: Store updated data from datagridview to sqlserver2000 Pin
elci12-Jul-09 22:47
elci12-Jul-09 22:47 
Questionread video stream from IP Address on 80 port assigned to DVR Pin
kunal.tawde12-Jul-09 20:37
kunal.tawde12-Jul-09 20:37 
AnswerRe: read video stream from IP Address on 80 port assigned to DVR Pin
#realJSOP13-Jul-09 1:05
mve#realJSOP13-Jul-09 1:05 
GeneralRe: read video stream from IP Address on 80 port assigned to DVR Pin
kunal.tawde13-Jul-09 21:14
kunal.tawde13-Jul-09 21:14 
Questionc#:how to install new font? Pin
lhong100112-Jul-09 19:00
lhong100112-Jul-09 19:00 
AnswerRe: c#:how to install new font? Pin
dan!sh 12-Jul-09 21:44
professional dan!sh 12-Jul-09 21:44 

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.