[Mono-bugs] [Bug 61802][Nor] New - Hashtable.Clone() throws out of sync exception

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 21 Jul 2004 16:25:31 -0400 (EDT)

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 mail@meebey.net.


--- shadow/61802	2004-07-21 16:25:31.000000000 -0400
+++ shadow/61802.tmp.26902	2004-07-21 16:25:31.000000000 -0400
@@ -0,0 +1,49 @@
+Bug#: 61802
+Product: Mono: Class Libraries
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: mail@meebey.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Hashtable.Clone() throws out of sync exception
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+A synchronized hashtable throws an exception when it gets changed while its
+On MS.NET 1.1 Framework this exception does not happen.
+Steps to reproduce the problem:
+use the testcase I attached to this bugreport
+Actual Results:
+Unhandled Exception: System.InvalidOperationException:
+Hashtable.Enumerator: snapshot out of sync.
+in <0x00039> Enumerator:FailFast ()
+in <0x00011> Enumerator:Reset ()
+in <0x0003b> Enumerator:.ctor
+in <0x00025> System.Collections.Hashtable:GetEnumerator ()
+in <0x00090> System.Collections.Hashtable:Clone ()
+in <0x0001b> SyncHashtable:Clone ()
+in <0x0007c> main:Main ()
+Expected Results:
+endles loop, no exceptions
+How often does this happen? 
+Additional Information: