[Mono-bugs] [Bug 81105][Wis] New - TCPClient.Connected returning NullReference after closing TCPClient

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Mar 10 14:56:18 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 marco.gario at email.it.


--- shadow/81105	2007-03-10 14:56:18.000000000 -0500
+++ shadow/81105.tmp.26887	2007-03-10 14:56:18.000000000 -0500
@@ -0,0 +1,34 @@
+Bug#: 81105
+Product: Mono: Class Libraries
+Version: 1.0
+OS: All
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: marco.gario at email.it               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: TCPClient.Connected returning NullReference after closing TCPClient
+Description of Problem:
+After calling TCPClient.Close() TCPClient.Client is Disposed.
+So when trying to access to TCPClient.Connected you will get a 
+NullReference exception.
+This problem is also related to MS way of using TCPClient.Close() because 
+it doesn't delete TCPClient.Client, so you are able to access 
+TCPClient.Connected without problems.
+So it is mainly an interpratation/comaptibility issue.
+I'm attaching a test and a (possible) solution.
+Additional Information:
+Mono 1.2.3
+I also looked to the svn version to make the correction

More information about the mono-bugs mailing list