svn path=/trunk/mcs/; revision=85357
+2007-09-05 Gert Driesen <drieseng@users.sourceforge.net>
+
+ * Timer.cs: On 2.0 profile, only allow 32-bit interval in ctor.
+
2006-12-19 Robert Jordan <robertj@gmx.net>
* Timer.cs: Apply the latest patch at attached to bug #77847.
ISynchronizeInvoke so;
ManualResetEvent wait;
Thread thread;
- object locker = new object ();
+ readonly object locker = new object ();
[Category("Behavior")]
[TimersDescription("Occurs when the Interval has elapsed.")]
public Timer (double interval)
{
+#if NET_2_0
+ // MSBUG: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=296761
+ if (interval > 0x7FFFFFFF)
+ throw new ArgumentException ("Invalid value: " + interval, "interval");
+#endif
+
autoReset = true;
- enabled = false;
Interval = interval;
- so = null;
- wait = null;
}
-
[Category("Behavior")]
[DefaultValue(true)]
[TimersDescription("Indicates whether the timer will be restarted when it is enabled.")]
}
}
}
-