[Mono-bugs] [Bug 331781] Stack trace don't match file names/line numbers specified by " #line"

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 9 11:59:02 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=331781#c1





--- Comment #1 from Juraj Skripsky <juraj at hotfeet.ch>  2007-10-09 09:59:02 MST ---
The stack trace's line numbers are off even without the line pragma:

============
1: using System;
2: class Test {
3:    static void Main() {
4:        try {
5:                object o = null;
6:                o.ToString();
7:        } catch(Exception e) {
8:                Console.WriteLine(e);
9:        }
10:    }
11:}
============
System.NullReferenceException: Object reference not set to an instance of an
object
  at Test.Main () [0x00000] in /home/js/temp/test3.cs:5

It should read 6, not 5 (assuming we start counting lines with 1).


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list