Showing results for August 9, 2013 - The Old New Thing

Aug 9, 2013
Post comments count0
Post likes count0

Each time I move, my mailbox moves further away

Raymond Chen
Raymond Chen

When I was growing up, the mailman letter carrier came right to our front door. The mailbox was mounted on the front of the house right next to the front door. You could check the mail without even getting dressed; just open the door a crack and stick out your hand. Approximate distance from front door to mailbox: less than 1 foot. In the nex...

Non-Computer
Aug 9, 2013
Post comments count0
Post likes count0

Why does the CLR report a NullReferenceException even if the referenced access is not exactly the null pointer?

Raymond Chen
Raymond Chen

We saw some time ago that before invoking a method on an object, the CLR will generate a instruction to force a null reference exception to be raised if you are trying to invoke a method on a null reference. But why does the CLR raise a if the faulting address is almost but not quite zero? When run, this program raises a rather than an . ...

Code