[Mono-bugs] [Bug 594642] New: System.ArgumentException from System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces on Mac OS X
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Apr 7 21:56:08 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=594642
http://bugzilla.novell.com/show_bug.cgi?id=594642#c0
Summary: System.ArgumentException from
System.Net.NetworkInformation.NetworkInterface.GetAllN
etworkInterfaces on Mac OS X
Classification: Mono
Product: Mono: Class Libraries
Version: 2.6.x
Platform: x86
OS/Version: Mac OS X 10.6
Status: NEW
Severity: Critical
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: esd at cmu.edu
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=353015)
--> (http://bugzilla.novell.com/attachment.cgi?id=353015)
An archive of a sample project demonstrating this issue
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us)
AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7
On Mac OS X 10.6.3, with Mono 2.6.3 installed via the framework and CSDK
packages, I receive the following exception when I try to call
System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces():
Unhandled Exception: System.ArgumentException: length
at System.Array.Copy (System.Array sourceArray, Int32 sourceIndex,
System.Array destinationArray, Int32 destinationIndex, Int32 length) [0x00000]
in <filename unknown>:0
at
System.Net.NetworkInformation.MacOsNetworkInterface.ImplGetAllNetworkInterfaces
() [0x00148] in
/private/tmp/monobuild/build/BUILD/mono-2.6.3/mcs/class/System/System.Net.NetworkInformation/NetworkInterface.cs:483
at System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces ()
[0x00047] in
/private/tmp/monobuild/build/BUILD/mono-2.6.3/mcs/class/System/System.Net.NetworkInformation/NetworkInterface.cs:70
I have attached a sample project that demonstrates this issue.
Reproducible: Always
Steps to Reproduce:
1. Build and run code that invokes
System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces
Actual Results:
A System.ArgumentException is thrown while
System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces is being
invoked.
Expected Results:
The method should have returned an array of NetworkInterface objects available
on the system.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list