WaitAll for multiple handles on an STA thread is not supported
- From: jon.george1@xxxxxxxxx
- Date: 5 Sep 2005 00:26:43 -0700
Our system app is throwing this error intermittantly. I've seen a few
cases of it in the groups, but they all seem to apply to calling
WaitHandler.WaitAll from the UI thread in a WinForms app, which isn't
what we're doing.
We have our main web app running on one server. It creates and makes a
call to an object running on another server, via remoting. That object
creates a delegate to a private method, uses BeginInvoke on the
delegate, then returns control to the web app.
The private method that was called asynchronously does some work then
makes several parallel calls to a third component (again by using
delegates and BeginInvoke) which lives on a third server and is again
accessed via remoting. Once all of the calls have been made, with the
resultant WaitHandles stored in an array, WaitHandler.WaitAll is
called.
Sometimes at this point an error is thrown with the description
"WaitAll for multiple handles on an STA thread is not supported".
The remoted objects are both hosted in IIS running on Windows 2000.
Any ideas?
The first remote object (being called from the web app) shares a server
with another component. This is also accessed via remoting but is
hosted in a separate IIS app. This second component accesses unmanaged
code in a C++ DLL (not a COM DLL). Could this have something to do with
it, and if so how?
Help!
Thanks,
Jon
.
- Follow-Ups:
- Re: WaitAll for multiple handles on an STA thread is not supported
- From: Brock Allen
- Re: WaitAll for multiple handles on an STA thread is not supported
- From: Scott Allen
- Re: WaitAll for multiple handles on an STA thread is not supported
- Prev by Date: How to call 2 events inside the datagrid
- Next by Date: Base64 Conversions and CPU Usage
- Previous by thread: How to call 2 events inside the datagrid
- Next by thread: Re: WaitAll for multiple handles on an STA thread is not supported
- Index(es):
Relevant Pages
|