From 444f1ae2c091de3ce8646fcd5be4479a46deb1d4 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Wed, 3 Jan 2007 00:16:03 +0000 Subject: [PATCH] Revert 67496 as it makes running Paint.NET impossible svn path=/trunk/mcs/; revision=70392 --- mcs/class/corlib/System.Threading/WaitHandle.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mcs/class/corlib/System.Threading/WaitHandle.cs b/mcs/class/corlib/System.Threading/WaitHandle.cs index 47f535490a9..49094ac6723 100644 --- a/mcs/class/corlib/System.Threading/WaitHandle.cs +++ b/mcs/class/corlib/System.Threading/WaitHandle.cs @@ -55,9 +55,17 @@ namespace System.Threading if (length > 64) throw new NotSupportedException ("Too many handles"); +#if false + // + // Although we should thrown an exception if this is an STA thread, + // Mono does not know anything about STA threads, and just makes + // things like Paint.NET not even possible to work. + // + // See bug #78455 for the bug this is supposed to fix. + // if (waitAll && length > 1 && IsSTAThread) throw new NotSupportedException ("WaitAll for multiple handles is not allowed on an STA thread."); - +#endif foreach (WaitHandle w in handles) { if (w == null) throw new ArgumentNullException ("waitHandles", "null handle"); -- 2.11.4.GIT