[Mono-bugs] [Bug 79835][Nor] New - PageSetupDialog: ArgumentNullException in swf-printing sample

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Nov 5 08:41:18 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 alex.olk at googlemail.com.

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

--- shadow/79835	2006-11-05 08:41:18.000000000 -0500
+++ shadow/79835.tmp.17603	2006-11-05 08:41:18.000000000 -0500
@@ -0,0 +1,96 @@
+Bug#: 79835
+Product: Mono: Class Libraries
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: alex.olk at googlemail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: PageSetupDialog: ArgumentNullException in swf-printing sample
+
+I'm getting an ArgumentNullException in swf-printing for PageSetupDialog.
+
+To reproduce:
+
+File -> Page Setup
+
+and crash:
+
+Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
+Parameter name: src
+  at <0x00000> <unknown method>
+  at (wrapper managed-to-native)
+System.Runtime.InteropServices.Marshal:PtrToStructure (intptr,System.Type)
+  at System.Drawing.Printing.PrintingServicesUnix.LoadPrinterPaperSizes
+(System.String printer, System.Drawing.Printing.PrinterSettings settings)
+[0x00023] in
+/home/alex/develop/mcs/class/System.Drawing/System.Drawing.Printing/PrintingServicesUnix.cs:147
+
+  at System.Drawing.Printing.PrinterSettings.get_PaperSizes () [0x0001d] in
+/home/alex/develop/mcs/class/System.Drawing/System.Drawing.Printing/PrinterSettings.cs:387
+
+  at System.Windows.Forms.PageSetupDialog.SetPrinterDetails () [0x00027] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PageSetupDialog.cs:472
+
+  at System.Windows.Forms.PageSetupDialog.RunDialog (IntPtr hwnd) [0x00000]
+in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PageSetupDialog.cs:194
+
+  at System.Windows.Forms.CommonDialog.ShowDialog (IWin32Window ownerWin32)
+[0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CommonDialog.cs:107
+
+  at System.Windows.Forms.CommonDialog.ShowDialog () [0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CommonDialog.cs:102
+
+  at (wrapper remoting-invoke-with-check)
+System.Windows.Forms.CommonDialog:ShowDialog ()
+  at print_tester.Form1.filePageSetupMenuItem_Click (System.Object sender,
+System.EventArgs e) [0x0002c] in
+/home/alex/develop/winforms/printing/swf-printing.cs:64 
+  at (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
+  at System.Windows.Forms.MenuItem.OnClick (System.EventArgs e) [0x0000b]
+in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuItem.cs:456
+
+  at System.Windows.Forms.MenuItem.PerformClick () [0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuItem.cs:496
+
+  at (wrapper remoting-invoke-with-check)
+System.Windows.Forms.MenuItem:PerformClick ()
+  at System.Windows.Forms.MenuTracker.OnMouseUp
+(System.Windows.Forms.MouseEventArgs args) [0x00037] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs:186
+
+  at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m)
+[0x0067e] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:1936
+
+  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
+(System.Windows.Forms.Message& m) [0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:180
+
+  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg,
+IntPtr wParam, IntPtr lParam) [0x0006b] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:159
+
+  at System.Windows.Forms.XplatUIX11.DispatchMessage
+(System.Windows.Forms.MSG& msg) [0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:2854
+
+  at System.Windows.Forms.XplatUI.DispatchMessage
+(System.Windows.Forms.MSG& msg) [0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:428
+
+  at System.Windows.Forms.Application.DispatchMessage
+(System.Windows.Forms.MSG& msg) [0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:447


More information about the mono-bugs mailing list