Hi!
I'm trying to port some windows application (with windows forms) to mono, and I have problem with RichTextBox.

In the newest version of Mono 1.1.16 it doesn't work properly, especially function LoadFile. In mono version 1.1.13.8 it works correctly (i'm testing using vmware and ubuntu 5.10, so always the same, clean environment). In newest version it throws exception when trying load simple RTF file (with Arial font):

Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
Parameter name: familyName
  at System.Drawing.Font.CreateFont (System.String familyName, Single emSize, Fo ntStyle style, GraphicsUnit unit, Byte charSet, Boolean isVertical) [0x00000]
  at System.Drawing.Font..ctor (System.String familyName, Single emSize, FontSty le style, GraphicsUnit unit, Byte charSet, Boolean isVertical) [0x00000]
  at System.Drawing.Font..ctor (System.String familyName, Single emSize, FontSty le style) [0x00000]
  at (wrapper remoting-invoke-with-check) System.Drawing.Font:.ctor (string,sing le,System.Drawing.FontStyle)
  at System.Windows.Forms.RichTextBox.FlushText (System.Windows.Forms.RTF.RTF rt f, Boolean newline) [0x00000]
  at System.Windows.Forms.RichTextBox.SpecialChar (System.Windows.Forms.RTF.RTF rtf) [0x00000]
  at System.Windows.Forms.RichTextBox.HandleControl (System.Windows.Forms.RTF.RT F rtf) [0x00000]
  at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_RTF (System. Windows.Forms.RTF.RTF)
  at System.Windows.Forms.RTF.RTF.RouteToken () [0x00000]
  at System.Windows.Forms.RTF.RTF.Read () [0x00000]
  at System.Windows.Forms.RichTextBox.InsertRTFFromStream (System.IO.Stream data , Int32 cursor_x, Int32 cursor_y, System.Int32 to_x, System.Int32 to_y, System.Int32 chars) [0x00000]
  at System.Windows.Forms.RichTextBox.InsertRTFFromStream (System.IO.Stream data , Int32 cursor_x, Int32 cursor_y) [0x00000]
  at System.Windows.Forms.RichTextBox.LoadFile (System.IO.Stream data, RichTextB oxStreamType fileType) [0x00000]
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.RichTextBox:LoadF ile (System.IO.Stream,System.Windows.Forms.RichTextBoxStreamType)



Is it known bug, or it is problem with my configuration?



Best regards
--
Bartosz Mosica
wilow [at] ncdc.pl
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to