[Mono-bugs] [Bug 82388][Nor] New - [Win32] ArgumentException drawing EMF in RTF

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Aug 9 12:58:11 EDT 2007


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 gert.driesen at pandora.be.

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

--- shadow/82388	2007-08-09 12:58:11.000000000 -0400
+++ shadow/82388.tmp.23263	2007-08-09 12:58:11.000000000 -0400
@@ -0,0 +1,72 @@
+Bug#: 82388
+Product: Mono: Class Libraries
+Version: 1.2
+OS: 
+OS Details: Windows XP SP2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Drawing.
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [Win32] ArgumentException drawing EMF in RTF
+
+The attached repro contains an RTF with an embedded EMF (taken from bug 
+#81178). 
+
+Running the repro on Windows results in the following exception:
+
+Unhandled Exception: System.ArgumentException: A null reference or invalid 
+value was found [GDI+ status: InvalidParameter] at 
+System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status) <0x0011a>
+at System.Drawing.Image.InitFromStream (System.IO.Stream) <0x001ac>
+at System.Drawing.Image.LoadFromStream (System.IO.Stream,bool) <0x0001c>
+at System.Drawing.Image.FromStream (System.IO.Stream) <0x0000c>
+at System.Windows.Forms.RTF.Picture.ToImage () <0x0000d>
+at System.Windows.Forms.RTF.Picture.DrawImage 
+(System.Drawing.Graphics,single,single,bool) <0x00022>
+at System.Windows.Forms.PictureTag.Draw 
+(System.Drawing.Graphics,System.Drawing.Brush,single,single,int,int,string)
+ <0x00044>
+at System.Windows.Forms.Document.Draw 
+(System.Drawing.Graphics,System.Drawing.Rectangle) <0x014b8>
+at System.Windows.Forms.TextBoxBase.OnPaintInternal 
+(System.Windows.Forms.PaintEventArgs) <0x001fd>
+at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message&) 
+<0x00103>
+at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&) 
+<0x00165>
+at System.Windows.Forms.TextBoxBase.WndProc 
+(System.Windows.Forms.Message&) <0x002ee>
+at System.Windows.Forms.RichTextBox.WndProc 
+(System.Windows.Forms.Message&) <0x0000d>
+at ControlWindowTarget.OnMessage (System.Windows.Forms.Message&) <0x00014>
+at ControlNativeWindow.WndProc (System.Windows.Forms.Message&) <0x00022>
+at System.Windows.Forms.NativeWindow.WndProc 
+(intptr,System.Windows.Forms.Msg,intptr,intptr) <0x0015c>
+at System.Windows.Forms.XplatUIWin32.InternalWndProc 
+(intptr,System.Windows.Forms.Msg,intptr,intptr) <0x00046>
+at (wrapper native-to-managed) 
+System.Windows.Forms.XplatUIWin32.InternalWndProc 
+(intptr,System.Windows.Forms.Msg,intptr,intptr) <0x0004d>
+in (unmanaged) 7E418733
+at (wrapper managed-to-native) 
+System.Windows.Forms.XplatUIWin32.Win32DispatchMessage 
+(System.Windows.Forms.MSG&) <0x00004>
+at System.Windows.Forms.XplatUIWin32.DispatchMessage 
+(System.Windows.Forms.MSG&) <0x0000a>
+at System.Windows.Forms.XplatUI.DispatchMessage 
+(System.Windows.Forms.MSG&) <0x00015>
+at System.Windows.Forms.Application.RunLoop 
+(bool,System.Windows.Forms.ApplicationContext) <0x00532>
+at System.Windows.Forms.Form.ShowDialog 
+(System.Windows.Forms.IWin32Window) <0x00299>
+at System.Windows.Forms.Form.ShowDialog () <0x0000c>
+at (wrapper remoting-invoke-with-check) 
+System.Windows.Forms.Form.ShowDialog () <0x00038>
+at Program.Main () <0x00073>


More information about the mono-bugs mailing list