• Welcome to Valhalla Legends Archive.
 

M$ is dumb.

Started by MyndFyre, November 19, 2004, 12:50 PM

Previous topic - Next topic

MyndFyre

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.

QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

drivehappy

Isn't 2.0 technically in beta state though?

MyndFyre

Quote from: drivehappy on November 19, 2004, 02:16 PM
Isn't 2.0 technically in beta state though?

Yes, but the bug also exists in 1.0 and 1.1.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

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.

DecA

"Congratulations, there's nothing you can do about it."

hahaha, you don't know how hard i laughed when i read that, lol :-p


MyndFyre

QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Eibro

Random, like radioactive decay random?
Eibro of Yeti Lovers.

MyndFyre

Quote from: Eibro[yL] on November 20, 2004, 03:46 PM
Random, like radioactive decay random?

Isn't one of the features of radioactive decay that it is predictable?
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Eibro

Quote from: MyndFyre on November 21, 2004, 02:05 AM
Quote from: Eibro[yL] on November 20, 2004, 03:46 PM
Random, like radioactive decay random?

Isn't one of the features of radioactive decay that it is predictable?
No, you can only determine the probability of decay in a single atom.
Eibro of Yeti Lovers.