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 [EMAIL PROTECTED]

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

--- shadow/76077        2005-09-12 20:57:29.000000000 -0400
+++ shadow/76077.tmp.31120      2005-09-12 20:57:30.000000000 -0400
@@ -0,0 +1,50 @@
+Bug#: 76077
+Product: Mono: Class Libraries
+Version: 1.1
+OS: Debian Potato
+OS Details: Linux-2.6.8-2-k7-i686-with-debian-3.1
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: System
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: NullReferenceException  from listenSocket.SetSocketOption() which 
working in 1.1.8.3.
+
+It's actually System.Net.Sockets.
+
+The following code shows a NullReferenceException coming out of 
+listenSocket.SetSocketOption() where it previously worked. It prints...
+
+Good so far...
+Bollocks!
+
+try
+            {
+                Socket listenSocket = new Socket
+(AddressFamily.InterNetwork,  SocketType.Dgram, ProtocolType.Udp);
+                listenSocket.SetSocketOption(SocketOptionLevel.Socket, 
+SocketOptionName.ReuseAddress, 1);
+                listenSocket.Bind(new IPEndPoint(IPAddress.Any, 
+DiscoveryPort));
+                Debug.Assert(listenSocket != null);
+                Console.WriteLine("Good so far...");
+                listenSocket.SetSocketOption(SocketOptionLevel.IP, 
+SocketOptionName.AddMembership, new MulticastOption(IPAddress.Parse
+("224.4.0.1"), IPAddress.Any));
+            }
+            catch (NullReferenceException)
+            {
+                Console.WriteLine("Bollocks!");
+                throw;
+            }
+            catch (Exception)
+            {
+                Console.WriteLine("Damn!");
+                throw;
+            }
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to