Home All Groups Group Topic Archive Search About

Hex numbers in NullReferenceException error message

Author
15 Aug 2006 11:13 AM
Ian Payne
My app is reportedly throwing an exception with the following error message:

A managed NullReferenceException occurred at Application ::Run+Oxf
Application::Run+Oxf
delcollectForm::Main+Oxa

I am unable to replicate this problem.

Simple question:  what do the hex numbers refer to? are they line numbers? &
if so do they refer to my C# source or to IL code, or what?
Any advice or links gratefully received!

Ian

Author
15 Aug 2006 1:19 PM
Larry Lard
Ian Payne wrote:
> My app is reportedly throwing an exception with the following error message:
>
> A managed NullReferenceException occurred at Application ::Run+Oxf
> Application::Run+Oxf
> delcollectForm::Main+Oxa
>
> I am unable to replicate this problem.
>
> Simple question:  what do the hex numbers refer to? are they line numbers? &
> if so do they refer to my C# source or to IL code, or what?
> Any advice or links gratefully received!

I think they are byte offsets within the IL. You can use ildasm to see
the IL your code becomes, and I think there is a way to show the
original C' and the IL side by side, but I can't think of it right now.

--
Larry Lard
larryl***@googlemail.com
The address is real, but unread - please reply to the group
For VB and C# questions - tell us which version
Author
15 Aug 2006 2:11 PM
Ian Payne
Show quote
"Larry Lard" wrote:

> Ian Payne wrote:
> > My app is reportedly throwing an exception with the following error message:
> >
> > A managed NullReferenceException occurred at Application ::Run+Oxf
> > Application::Run+Oxf
> > delcollectForm::Main+Oxa
> >
> > I am unable to replicate this problem.
> >
> > Simple question:  what do the hex numbers refer to? are they line numbers? &
> > if so do they refer to my C# source or to IL code, or what?
> > Any advice or links gratefully received!
>
> I think they are byte offsets within the IL. You can use ildasm to see
> the IL your code becomes, and I think there is a way to show the
> original C' and the IL side by side, but I can't think of it right now.
>
> --
> Larry Lard
> larryl***@googlemail.com
> The address is real, but unread - please reply to the group
> For VB and C# questions - tell us which version
>
Thanks, Larry.  After a little experimentation with ildasm, it seems certain
that the 'Main+Oxa' refers to :
....
IL_000a:  ret
    } // end of method delCollectForm::Main

which is indeed the end of the Main method.

cheers,
Ian

AddThis Social Bookmark Button