Hi Peter, are you telling me I can simply change my sta to mta on my Winform ?
I was under the impression that this was a no no.... cheers Allan On Fri, 23 Sep 2005 08:48:42 -0400, Peter Ritchie <[EMAIL PROTECTED]> wrote: >For specific check out: >http://blogs.msdn.com/cbrumme/archive/2004/02/02/66219.aspx > >For what it's worth, when I changed STAThread to MTAThread WaitAll worked >fine, as expected. > >http://www.peterRitchie/ > >On Fri, 23 Sep 2005 05:28:28 -0400, Allan N. <[EMAIL PROTECTED]> wrote: > >>Hi, >>in my naive attempt to spin off 6 threads and then wait for them to finish >>before filling a grid I got the >>"WaitAll for multiple handles on an STA thread is not supported" message >>flashing in my eyes. >> >>checking the documentation was perhaps the best I could have done before >>going this way :). >> >>what else could I use here instead of WaitAll ? using ManualResetEvent >>[curThread].WaitOne and then looping seems rather tedious... > >=================================== >This list is hosted by DevelopMentorĀ® http://www.develop.com > >View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
