Google 網上論壇首頁
說明 | 登入
WaitHandles must be less than or equal to 64 - missing documentation 討論的留言
您要留言的群組是 Usenet 群組。在此群組留言,網際網路上的任何使用者將可以看到您的電郵地址。
您的回覆郵件尚未寄出。
您已成功留言
William Stacey [C# MVP]  
檢視個人資料
 更多選項 2006年12月25日, 上午11時06分
新聞群組: microsoft.public.dotnet.framework.clr
寄件者: "William Stacey [C# MVP]" <william.sta...@gmail.com>
日期: Sun, 24 Dec 2006 22:06:39 -0500
當地時間: 2006年12月25日(星期一) 上午11時06分
主旨: Re: WaitHandles must be less than or equal to 64 - missing documentation
Fortunately, WaitAll is easy to implement with any number of handles.  Here
is a simple example.

        public static void WaitAll(WaitHandle[] handles)
        {
            if (handles == null)
                throw new ArgumentNullException("handles");
            foreach (WaitHandle wh in handles)
            {
                wh.WaitOne();
            }
        }

--
William Stacey [C# MVP]

"Loy" <l.oyo...@gmail.com> wrote in message

news:1166955143.196574.53360@f1g2000cwa.googlegroups.com...
| Calling WaitAll with array of 64 or more causes exception
| WaitHandle.WaitAll(whaWaitHandlesArray);
|
| System.NotSupportedException: The number of WaitHandles must be less
| than or equal to 64.
|   at System.Threading.WaitHandle.WaitAll(WaitHandle[] waitHandles,
| Int32 millisecondsTimeout, Boolean exitContext)
|   at System.Threading.WaitHandle.WaitAll(WaitHandle[] waitHandles)
|
| Searching for the error string revealed no KB article or MSDN
| documentation.
| I did found MSFT answer regarding that on:
|
http://groups.google.com/group/microsoft.public.sqlserver.notificatio...
|
| The API documentation says it might throw NotSupportedException under
| the condition: "The number of objects in waitHandles is greater than
| the system permits."
|
| My questions are:
| 1. How can I find the system limitation? what does it depends on?
| 2. Any kb article that will provide link from the exception message to
| the real cause will be helpful for all the developers and will save us
| google time
|
| (About Google Vs www.Live.com - Live did not find even a single match
| ...)
|
| Loy
|

    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。

建立群組 - Google 網上論壇 - Google 首頁 - 服務條款 - 隱私權政策
©2008 Google