PC Review


Reply
Thread Tools Rate Thread

Bug in System.Timers.Timer class

 
 
Geert Depickere
Guest
Posts: n/a
 
      5th Sep 2005
The System.Timers.Timer class has a property Interval, which is a double
(timer interval in milliseconds)

If interval is set to a double value > Int32.MaxValue and the timer is
started, an ArgumentOutOfRangeException is thrown (Additional information:
Number must be either non-negative or -1).

It seems to me that internally, the double Interval is casted to an int...

Geert Depickere.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System.Timers.Timer bug : timer fires immediately/continously felix Microsoft Dot NET Framework 2 25th Apr 2005 07:48 PM
System.Timers.Timer/System.Threading.Timer Not Firing At All on Dev Server james.e.coleman@gmail.com Microsoft ASP .NET 1 22nd Feb 2005 10:41 PM
Bug in System.Timers.Timer class Can Balioglu Microsoft C# .NET 1 1st Oct 2004 11:50 AM
RE: Timers not fireing System.Windows.Forms.Timer and System.Timers.Ti =?Utf-8?B?UmljaE0=?= Microsoft Dot NET Framework Forms 3 19th Aug 2004 11:35 AM
RE: Timers not fireing System.Windows.Forms.Timer and System.Timer =?Utf-8?B?VGlt?= Microsoft Dot NET Framework Forms 0 18th Aug 2004 12:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:20 AM.