dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bug #6201] System.Windows.Forms.Timer.Enable throws A


From: nobody
Subject: [Pnet-developers] [bug #6201] System.Windows.Forms.Timer.Enable throws ArgumentOutOfRangeException
Date: Sun, 02 Nov 2003 17:30:07 -0500
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)

=================== BUG #6201: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=6201&group_id=353

Changes by: Neil Cawse <address@hidden>
Date: Sun 11/02/2003 at 22:30 (GMT)

            What     | Removed                   | Added
---------------------------------------------------------------------------
              Status | Open                      | Closed


------------------ Additional Follow-up Comments ----------------------------
Shouldnt matter where you enable it from now. fixed in cvs.



=================== BUG #6201: FULL BUG SNAPSHOT ===================


Submitted by: Krai                    Project: DotGNU Portable.NET          
Submitted on: Mon 10/27/2003 at 17:55
Category:  None                       Severity:  5 - Major                  
Bug Group:  None                      Resolution:  None                     
Assigned to:  None                    Status:  Closed                       

Summary:  System.Windows.Forms.Timer.Enable throws ArgumentOutOfRangeException

Original Submission:  The code for S.W.F.Timer, Method Enable() is in-place, 
but throws an Uncaught Exception (ArgumentOutOfRangeException) in the set{} 
block.

Reading from this property is unaffected.


See attached .cs file.

Expected Output:
System.Windows.Forms.Timer, Interval: 500 is: False
System.Windows.Forms.Timer, Interval: 500 is: True


Actual Output:
System.Windows.Forms.Timer, Interval: 500 is: False
Uncaught exception: System.ArgumentOutOfRangeException: Array position or 
length is out of range
Parameter name: index
        at System.Collections.ArrayList.get_Item(Int32) in 
.SystemCollectionsArrayList.cs
        at System.Drawing.Toolkit.DrawingToolkit.RegisterTimer(Object, Int32, 
EventHandler) in .DrawingToolkit.cs
        at System.Windows.Forms.Timer.set_Enabled(Boolean) in .Timer.cs
        at Class1.Main(String[])





Follow-up Comments
*******************

-------------------------------------------------------
Date: Sun 11/02/2003 at 22:30       By: neilcawse
Shouldnt matter where you enable it from now. fixed in cvs.

-------------------------------------------------------
Date: Mon 10/27/2003 at 20:18       By: Krai
I got it working in a graphical application by moving 'timer.Enable = true;' 
from InitializeComponent() in the form to the .Load event

Thanks, leppie.


This line would be nice to update somehow for use in console applications.


pnetlib/System.Drawing.Win32/DrawingToolkit.cs line 450:
// Assume for now that the first window created will service the timers  
Win32.Api.SetTimer( (windows[0] as DrawingWindow).hwnd, cookie, (uint)interval, 
IntPtr.Zero ); 


CC list is empty


File Attachments
****************

-------------------------------------------------------
Date: Mon 10/27/2003 at 17:55  Name: Class1.cs  Size: 0KB   By: Krai
Test case
http://savannah.gnu.org/bugs/download.php?group_id=353&amp;bug_id=6201&amp;bug_file_id=759


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=6201&group_id=353

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]