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.

If you're looking for something else, please file a feature request.

Thanks,
Jon
_______________________________________________
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