[Mono-bugs] [Bug 80851][Min] New - Ping returns null and not NotImplemented

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Feb 14 14:41:00 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by viashino at email.it.

http://bugzilla.ximian.com/show_bug.cgi?id=80851

--- shadow/80851	2007-02-14 14:41:00.000000000 -0500
+++ shadow/80851.tmp.14873	2007-02-14 14:41:00.000000000 -0500
@@ -0,0 +1,56 @@
+Bug#: 80851
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: viashino at email.it               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Ping returns null and not NotImplemented
+
+Description of Problem:
+When using the Ping class, it will always return null. It should raise an  
+"NotImplemented" error.
+
+Steps to reproduce the problem:
+
+using System;
+using System.Net.NetworkInformation;
+
+namespace TestPing
+{
+	class MainClass
+	{
+		public static void Main(string[] args)
+		{
+			Ping oPing = new Ping();
+			PingReply res = oPing.Send("127.0.0.1");
+			
+			if (res==null)
+				Console.WriteLine("Ping was Null");
+			else if(res.Status == IPStatus.Success)
+				Console.WriteLine("Success");
+				
+		}
+	}
+}
+
+Actual Results:
+Ping Was Null
+
+Expected Results:
+Success
+
+How often does this happen? 
+Always 
+
+Additional Information:
+mono version 1.2.2.1


More information about the mono-bugs mailing list