[Mono-bugs] [Bug 34859][Nor] Changed - WaitHandle.WaitAny and WaitAll don't wait.
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
5 Dec 2002 14:51:09 -0000
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 tum@veridicus.com.
http://bugzilla.ximian.com/show_bug.cgi?id=34859
--- shadow/34859 Wed Dec 4 12:53:08 2002
+++ shadow/34859.tmp.29450 Thu Dec 5 09:51:09 2002
@@ -79,6 +79,17 @@
0x0814f087 in _wapi_handle_test_capabilities (handle=0x81b6d80,
caps=WAPI_HANDLE_CAP_WAIT) at handles.c:790
790 type=_wapi_shared_data->handles[idx].type;
(gdb) p idx
$1 = 136015232
It works with mono on windows but it gives the wrong resulsts as reported.
+
+------- Additional Comments From tum@veridicus.com 2002-12-05 09:51 -------
+I've sent the fix to dick. WaitForMultipleObjects was given the
+incorrect handles. The io-layer's WaitForMultipleObjects doesn't do
+valid handle checking (windows seems to). This is why why the
+sample it crashes on Linux. Might want to make the io-layer's
+WaitForMultipleObjects more robust...
+
+Found and fixed another bug in WaitHandle.WaitAny. It wasn't
+returning correct index values. The return values needed to be
+offset by WAIT_OBJECT_0 and WAIT_ABANDONED_0.