On Mar 23, 2006, at 5:12 AM, Jonathan Johnson wrote:
On Mar 22, 2006, at 8: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?
The current design of System.NetworkInterface is to hand back
interfaces that sockets can be bound to. It would be undefined
behavior to bind a socket to an interface that isn't actually
connected.
Ah ... what I sort of suspected.
_______________________________________________
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>