Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"line 0" in dotNET stack trace

I got an error report, where the top of the stack trace was similar to:

System.NullReferenceException: &lt...> at MyApplication.MyType.SomeMethod(String arg) in MyType.cs:line 0

The point is, that the line number is 0. What could cause such stack-trace behavior?

like image 204
alex.b Avatar asked Nov 03 '10 09:11

alex.b


1 Answers

According to this question, it could be due to inlining. Have you got optimisations switched on?

like image 141
demoncodemonkey Avatar answered Sep 18 '22 00:09

demoncodemonkey