Stack Tace +number help

  • Thread starter Thread starter MeDhanush
  • Start date Start date
M

MeDhanush

Hi,
when there is some message like this,

[InvalidCastException: Object cannot be cast from DBNull to other types.]
System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider) +48
System.Convert.ToInt32(Object value) +36
sln.prj.cls.metodA(DataTable dt ) +746

can sb tell me what does +48 ,+36 or +746 indicate ?
By any chance these indicate number of bytes at assembly level ?
If so, how do I goto assembly level, I'm sure there is a switch for this.

TIA
Kishore
 
Hi,
when there is some message like this,

[InvalidCastException: Object cannot be cast from DBNull to other types.]
System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider) +48
System.Convert.ToInt32(Object value) +36
sln.prj.cls.metodA(DataTable dt ) +746

can sb tell me what does +48 ,+36 or +746 indicate ?
By any chance these indicate number of bytes at assembly level ?
If so, how do I goto assembly level, I'm sure there is a switch for this.

TIA
Kishore

If you compile using with debug info enabled (add /debug+ switch to
csc.exe) you will get function and line number info for your code
instead of these numbers which are byte offsets in the given
functions. It gets more complicated for the assemblies produced by MS
and reading the Exception string is usually sufficient.
 
Back
Top