[Mono-dev] Nullref when clearing TextBox that hasn't been shown yet

Latif Khalifa latifer at radegastclient.org
Tue Oct 19 13:18:55 EDT 2010


Hi,

When trying to run Radegast (sources and binaries available at
http://code.google.com/p/radegast/downloads/list ) with mono-2.8 both
the release and current git master I get the following exception from
the WinForms:

Unhandled Exception: System.NullReferenceException: Object reference
not set to an instance of an object
 at System.Windows.Forms.Document.LineTagToCharIndex
(System.Windows.Forms.Line line, Int32 pos) [0x00000] in <filename
unknown>:0
 at System.Windows.Forms.RichTextBox.set_SelectionColor (Color value)
[0x00000] in <filename unknown>:0
 at (wrapper remoting-invoke-with-check)
System.Windows.Forms.RichTextBox:set_SelectionColor
(System.Drawing.Color)
 at Radegast.RichTextBoxPrinter.set_ForeColor (Color value) [0x00000]
in <filename unknown>:0
 at Radegast.ChatTextManager.ProcessBufferItem
(Radegast.ChatBufferItem item, Boolean addToBuffer) [0x00000] in
<filename unknown>:0
 at Radegast.ChatTextManager.ReprintAllText () [0x00000] in <filename
unknown>:0

Bisected the problem to commit
efac449236dd0b9d34daddecf36f2f2a888faf81 and made a patch that fixes
the problem http://github.com/lkalif/mono/commit/cbba5894f0844951319af0892da6b0a1d863612c

Latif


More information about the Mono-devel-list mailing list