|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Hex numbers in NullReferenceException error messageMy 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 Payne wrote:
> My app is reportedly throwing an exception with the following error message: I think they are byte offsets within the IL. You can use ildasm to see > > 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! 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
Show quote
"Larry Lard" wrote: Thanks, Larry. After a little experimentation with ildasm, it seems certain > 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 > 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 |
|||||||||||||||||||||||