[Mono-bugs] [Bug 79693][Nor] New - System.IndexOutOfRangeException at Mime.CheckForBinaryOrText
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Oct 18 11:54:04 EDT 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by d+bugzilla at vdr.jp.
http://bugzilla.ximian.com/show_bug.cgi?id=79693
--- shadow/79693 2006-10-18 11:54:04.000000000 -0400
+++ shadow/79693.tmp.4409 2006-10-18 11:54:04.000000000 -0400
@@ -0,0 +1,87 @@
+Bug#: 79693
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details: Debian GNU/Linux (unstable)
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com
+ReportedBy: d+bugzilla at vdr.jp
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: System.IndexOutOfRangeException at Mime.CheckForBinaryOrText
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+I got Got System.IndexOutOfRangeException: Array index is out of range
+at System.Windows.Forms.Mime.CheckForBinaryOrText of OpenFileDialog.
+I use Mono 1.1.18 and libgdiplus 1.1.18 in Debian GNU/Linux (unstable).
+
+
+Steps to reproduce the problem:
+1. mcs -r:System.Windows.Forms -r:System.Drawing testcase.cs
+ (testcase.cs is below)
+2. run testcase.exe
+
+
+Actual Results:
+Open ''file dialog'', but no files/directories in window.
+And I got below Exception output.
+
+Unhandled Exception: System.IndexOutOfRangeException: Array index is out of
+range.
+ at System.Windows.Forms.Mime.CheckForBinaryOrText () [0x00000]
+ at System.Windows.Forms.Mime.GoByFileName () [0x00000]
+ at System.Windows.Forms.Mime.StartByFileName (System.String filename)
+[0x00000]
+ at System.Windows.Forms.Mime.GetMimeTypeForFile (System.String filename)
+[0x00000]
+ at System.Windows.Forms.MimeIconEngine.GetIconIndexForFile (System.String
+full_filename) [0x00000]
+ at System.Windows.Forms.FileSystem.GetFileFSEntry (System.IO.FileInfo
+fileinfo) [0x00000]
+ at System.Windows.Forms.FileSystem.GetNormalFolderContent (System.String
+from_folder, System.Collections.Specialized.StringCollection filters,
+System.Collections.ArrayList& directories_out,
+System.Collections.ArrayList& files_out) [0x00000]
+ at System.Windows.Forms.FileSystem.GetFolderContent
+(System.Collections.Specialized.StringCollection filters,
+System.Collections.ArrayList& directories_out,
+System.Collections.ArrayList& files_out) [0x00000]
+ at System.Windows.Forms.MWFVFS+WorkerThread.GetFolderContentThread ()
+[0x00000]
+ at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()
+
+Expected Results:
+files/directories in window and no Exception output (Windows does).
+
+
+How often does this happen?
+Always.
+
+
+Additional Information:
+
+// testcase.cs
+
+namespace MyNameSpace
+{
+ using System;
+ using System.Windows.Forms;
+ using System.Drawing;
+
+ public class MyForm : Form
+ {
+ public static void Main()
+ {
+ OpenFileDialog fd = new OpenFileDialog();
+ fd.ShowDialog();
+ }
+ }
+}
More information about the mono-bugs
mailing list