[Mono-bugs] [Bug 77464][Min] New - OpenFileDialog.FileNames results different than with .NET.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Feb 3 16:05:17 EST 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 kdaniels at usfamily.net.

http://bugzilla.ximian.com/show_bug.cgi?id=77464

--- shadow/77464	2006-02-03 16:05:17.000000000 -0500
+++ shadow/77464.tmp.19240	2006-02-03 16:05:17.000000000 -0500
@@ -0,0 +1,125 @@
+Bug#: 77464
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: Fedora Core 3
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: kdaniels at usfamily.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: OpenFileDialog.FileNames results different than with .NET.
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+
+Description of Problem:
+
+The following program exhibts different results with .Net than with Mono.
+The program also generates a Signal Segmentation vialation SIGSEGV. It does
+not chash on .Net.
+
+using System;
+using System.Windows.Forms;
+namespace TestFD
+{
+	class Class1
+	{
+		[STAThread]
+		static void Main(string[] args)
+		{
+			string[] f;
+			OpenFileDialog fd = new OpenFileDialog();
+			fd.Multiselect=true;
+			fd.ShowDialog();
+			Console.WriteLine("file name before = " + fd.FileNames[0]);
+			f=fd.FileNames;
+			f[0]="abc";
+			Console.WriteLine("file name after = " + fd.FileNames[0]);
+			fd.Dispose();
+		}
+	}
+}
+
+Steps to reproduce the problem:
+1. Compile and execute the above program. 
+2. In the OpenFileDialog window select a file and click Open
+3. 
+
+Actual Results:
+
+Mono System.Windows.Forms Assembly [Revision: 54007; built: 2005/12/6 14:35:24]
+Keyboard: United States keyboard layout (phantom key version)
+Gtk colorscheme read
+file name before = /home/kendaniels/Projects/TestFD/test.cs
+file name after = abc
+
+=================================================================
+Got a SIGSEGV while executing native code. This usually indicates
+a fatal error in the mono runtime or one of the native libraries
+used by your application.
+=================================================================
+
+Stacktrace:
+
+in (wrapper managed-to-native) System.Drawing.GDIPlus:GdipDeleteBrush
+(intptr) <0x4>
+in (wrapper managed-to-native) System.Drawing.GDIPlus:GdipDeleteBrush
+(intptr) <0xffffffdf>
+in System.Drawing.Brush:Dispose (bool) <0x1f>
+in System.Drawing.Brush:Finalize () <0x10>
+in (wrapper runtime-invoke) System.Object:runtime_invoke_void
+(object,intptr,intptr,intptr) <0x1243b6d5>
+
+Native stacktrace:
+
+        mono(mono_handle_native_sigsegv+0x80) [0x813c2a4]
+        mono [0x812a93c]
+        /lib/tls/libpthread.so.0 [0xdd27c0]
+        /usr/X11R6/lib/libX11.so.6(_XSend+0x187) [0xd12ab6]
+        /usr/X11R6/lib/libX11.so.6(XQueryExtension+0x90) [0xd078e0]
+        /usr/X11R6/lib/libX11.so.6(XInitExtension+0x3b) [0xcfd3fb]
+        /usr/X11R6/lib/libXrender.so.1(XRenderFindDisplay+0x173) [0x21a5f5]
+        /usr/X11R6/lib/libXrender.so.1(XRenderFreePicture+0x1f) [0x21de74]
+        /usr/local/lib/libgdiplus.so [0xf6230e00]
+        /usr/local/lib/libgdiplus.so(cairo_surface_finish+0x41) [0xf6226d9d]
+        /usr/local/lib/libgdiplus.so(cairo_surface_destroy+0x3d) [0xf6226e01]
+        /usr/local/lib/libgdiplus.so [0xf6228fef]
+        /usr/local/lib/libgdiplus.so(cairo_pattern_destroy+0x3d) [0xf6229505]
+        /usr/local/lib/libgdiplus.so [0xf6204901]
+        /usr/local/lib/libgdiplus.so(GdipDeleteBrush+0xf) [0xf61f1a6b]
+        [0xf5b7714d]
+        [0xf5b77100]
+        [0xf5b77059]
+        [0xf5d022d9]
+        mono [0x813d986]
+        mono [0x813e3f7]
+        mono [0x80a1d49]
+        mono [0x80efd2a]
+        mono [0x80fcea1]
+        /lib/tls/libpthread.so.0 [0xdcc341]
+        /lib/tls/libc.so.6(__clone+0x5e) [0xc4bfee]
+Aborted
+
+Expected Results:
+ The Console output should be:
+
+file name before = /home/kendaniels/Projects/TestFD/test.cs
+file name after = /home/kendaniels/Projects/TestFD/test.cs
+
+The program should not crash.
+
+How often does this happen? 
+Every time
+
+Additional Information:
+Mono is from SVN on 2/3/06
+
+The program still crashes if everything is removed from Main(), except the
+new OpenFileDialog() and the ShowDialog().


More information about the mono-bugs mailing list