[Mono-bugs] [Bug 75790][Nor] Changed - InvalidCastException from cloned synchronized Hashtable that doesn't come from original hashtable.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Sep 21 01:21:43 EDT 2005


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 nev at delap.com.

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

--- shadow/75790	2005-09-01 02:54:47.000000000 -0400
+++ shadow/75790.tmp.4253	2005-09-21 01:21:43.000000000 -0400
@@ -102,6 +102,18 @@
 Hrm, actually it looks like Microsoft bug that the enumerator from the
 above code fails to MoveNext() and thus get_Current() fails. In .NET
 2.0 it is rather funky - it throws NullReferenceException at
 GetEnumerator().
 
 SyncHashtable is Fixed in svn (r49248).
+
+------- Additional Comments From Nev at Delap.com  2005-09-21 01:21 -------
+Yes, you're right, my test that runs every night contains 
+
+  DictionaryEntry dictionaryEntry = (DictionaryEntry)
+         enumerator2.Current; enumerator2.Current;
+
+not just... 
+
+   enumerator2.Current; enumerator2.Current;
+
+But it does get InvalidCastException. Hopefully there's only one bug.


More information about the mono-bugs mailing list