Hex numbers in NullReferenceException error message

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Ian said:
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 said:
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
(e-mail address removed)
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
 
Back
Top