[Top][All Lists]
[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: |
Mon, 27 Oct 2003 15:18:21 -0500 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031015 Firebird/0.7 (aebrahim) |
=================== BUG #6201: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=6201&group_id=353
Changes by: H. Jones <address@hidden>
Date: Mon 10/27/2003 at 20:18 (GMT)
------------------ Additional Follow-up Comments ----------------------------
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 );
=================== 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: Open
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: 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&bug_id=6201&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/