On Mar 22, 2006, at 6:43 PM, Christian Miller wrote:

I ran into an interesting issue with my laptop today. I was not connected to any network while airport was on, and I had the same issue when airport was turned off... System.NetworkInterfaceCount returned zero, and System.GetNetworkInterface(0).MACAddress raised an OutOfBounds error.

Why is this? Even if I'm not connected to a network, the MAC address should still be there. If not, the built in NIC interface should still be there as well. Any ideas of how to work around this?

Well since count was 0 why did you try ?
You should have been able to surmise that trying to get the MacAddress, of an interface that RB already told you did not exist, would cause an error.


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to