Valhalla Legends Forums Archive | .NET Platform | M$ is dumb.

AuthorMessageTime
Myndfyr
If you're working on a RichTextBox control and get this error programatically:

System.NullReferenceException: Object reference not set to an instance of an object.
at System.Windows.Forms.RichTextBox.EditStreamProc (IntPtr dwCookie, IntPtr buf, Int32 cb, ref Int32 transferred)
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.NativeWindow.DefWndProc(ref Message m)
at System.Windows.Forms.Control.DefWndProc(ref Message m)
at System.Windows.Forms.Control.WndProc(ref Message m)
at System.Windows.Forms.TextBoxBase.WndProc(ref Message m)
at System.Windows.Forms.RichTextBox.WndProc(ref Message m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(ref Message m)
at System.Windows.Forms.ControlNativeWindow.WndProc(ref Message m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Congratulations, there's nothing you can do about it.  Microsoft has acknowledged that a random problem with this pops up in 2.0, and using Reflector shows that the code is the same.  They apparrently assume that some stream is not null and don't prepare to make sure that's correct.

November 19, 2004, 6:50 PM
drivehappy
Isn't 2.0 technically in beta state though?
November 19, 2004, 8:16 PM
Myndfyr
[quote author=drivehappy link=topic=9608.msg89391#msg89391 date=1100895405]
Isn't 2.0 technically in beta state though?
[/quote]

Yes, but the bug also exists in 1.0 and 1.1.
November 19, 2004, 8:35 PM
K
So that's where that damn error comes from! I was getting this randomly a while back and it frustrated the hell out of me.
November 19, 2004, 11:14 PM
DecA
[color=Green]"Congratulations, there's nothing you can do about it."[/color]

hahaha, you don't know how hard i laughed when i read that, lol :-p
November 20, 2004, 2:01 AM
hismajesty
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=92d36730-2d8e-43b3-b2de-421720885d95
November 20, 2004, 2:28 PM
Myndfyr
[quote author=hismajesty[yL] link=topic=9608.msg89494#msg89494 date=1100960918]
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=92d36730-2d8e-43b3-b2de-421720885d95
[/quote]

Yeah uh...  That's my comment down at the bottom.
November 20, 2004, 7:15 PM
Eibro
Random, like radioactive decay random?
November 20, 2004, 9:46 PM
Myndfyr
[quote author=Eibro[yL] link=topic=9608.msg89536#msg89536 date=1100987174]
Random, like radioactive decay random?
[/quote]

Isn't one of the features of radioactive decay that it is predictable?
November 21, 2004, 8:05 AM
Eibro
[quote author=MyndFyre link=topic=9608.msg89601#msg89601 date=1101024359]
[quote author=Eibro[yL] link=topic=9608.msg89536#msg89536 date=1100987174]
Random, like radioactive decay random?
[/quote]

Isn't one of the features of radioactive decay that it is predictable?
[/quote]No, you can only determine the probability of decay in a single atom.
November 21, 2004, 9:51 PM

Search