[Mono-bugs] [Bug 81662][Nor] New - Thread.ApartmentState differences with MS

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu May 17 13:52:59 EDT 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 gert.driesen at pandora.be.


--- shadow/81662	2007-05-17 13:52:59.000000000 -0400
+++ shadow/81662.tmp.29053	2007-05-17 13:52:59.000000000 -0400
@@ -0,0 +1,28 @@
+Bug#: 81662
+Product: Mono: Class Libraries
+Version: 1.2
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Thread.ApartmentState differences with MS
+We currently throw an ThreadStateException when setting ApartmentState on 
+a started thread, while MS only does this when changing the ApartmentState 
+of another thread.
+We throw an ArgumentException when setting ApartmentState to Unknown, 
+while we should only throw an ArgumentOutOfRangeException for this on the 
+1.0 profile.
+I've attached a repro for these issues. To get the expected result on the 
+2.0 profile, compile it with gmcs and define the NET_2_0 symbol.

More information about the mono-bugs mailing list