[Mono-bugs] [Bug 52417][Min] New - unsafe possesion of a Monitor.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 21 Dec 2003 09:07:25 -0500 (EST)


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 mordechait@mainsoft.com.

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

--- shadow/52417	2003-12-21 09:07:25.000000000 -0500
+++ shadow/52417.tmp.31302	2003-12-21 09:07:25.000000000 -0500
@@ -0,0 +1,31 @@
+Bug#: 52417
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: mordechait@mainsoft.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: unsafe possesion of a Monitor.
+
+Its not a problem but more of a programming paradigm when holding a Monitor
+(for example for a crtitical section) (thus i rate this bug minor).
+Where ?
+Module: System.dll 
+File:   System\Net\HttpWebRequest.cs line: 513 method: BeginGetRequestStream
+The programmer declares a Monitor on "this" object.
+A safe progammer would wrap this section with try - finally , and release
+the Monitor in the finally clause.
+Read more in MSDN for C#:
+ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfsystemthreadingmonitorclasstopic.htm
+
+I take care for the quality of the code.
+Mr. Taitelman