[Mono-bugs] [Bug 338399] New: ArgumentOutOfRangeException in OpenFileDialog

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Nov 1 10:03:25 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=338399

           Summary: ArgumentOutOfRangeException in OpenFileDialog
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: daniel at hofmannmail.ath.cx
         QAContact: mono-bugs at ximian.com
          Found By: ---


Created an attachment (id=181668)
 --> (https://bugzilla.novell.com/attachment.cgi?id=181668)
Example code that helps reproducing the problem

Using the SWF-OpenFileDialog (and probably any other such dialog) i'm getting
an error when clicking into the frame that shows the available files.

I don't know, where exactly you have to click, to reproduce it, or whether
there has to be a file selected, but it always took me less than ten seconds to
provoke the following exception, using the attached Mini-Program and clicking
wildly on and alongside the shown files:

Unhandled Exception: System.ArgumentOutOfRangeException: Argument is out of
range.
Parameter name: index
  at System.Windows.Forms.ListView+SelectedListViewItemCollection.get_Item
(Int32 index) [0x00000] 
  at System.Windows.Forms.MWFFileView.OnBeforeLabelEdit
(System.Windows.Forms.LabelEditEventArgs e) [0x00000] 
  at System.Windows.Forms.ListView+ItemControl.BeginEdit
(System.Windows.Forms.ListViewItem item) [0x00000] 
  at System.Windows.Forms.ListView+ItemControl.ItemsMouseDown (System.Object
sender, System.Windows.Forms.MouseEventArgs me) [0x00000] 
  at System.Windows.Forms.Control.OnMouseDown
(System.Windows.Forms.MouseEventArgs e) [0x00000] 
  at System.Windows.Forms.Control.WmLButtonDown (System.Windows.Forms.Message&
m) [0x00000] 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.ListView+ItemControl.WndProc
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
wParam, IntPtr lParam) [0x00000] 
  at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG&
msg) [0x00000] 
  at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG&
msg) [0x00000] 
  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
System.Windows.Forms.ApplicationContext context) [0x00000] 
  at System.Windows.Forms.Form.ShowDialog (IWin32Window ownerWin32) [0x00000] 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form:ShowDialog
(System.Windows.Forms.IWin32Window)
  at System.Windows.Forms.CommonDialog.ShowDialog (IWin32Window ownerWin32)
[0x00000] 
  at System.Windows.Forms.CommonDialog.ShowDialog () [0x00000] 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.CommonDialog:ShowDialog ()
  at OpenFileDialogTest.Main () [0x00000] 


I've tested the behaviour with svn-rev 88583 but also noticed it in earlier
versions.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list