T
Tony
In certain applications I have (vb.net 2003), when I
catch an exception and print the toString (or
stacktrace), it does NOT show the line number. However,
other simple apps I have it does show the line number.
How can I get it to always show the line number. How/why
is it not always showing it? Anyway, this is what the
exception shows (from one of the apps where exception
isn't working correctly):
System.DivideByZeroException: Attempted to divide by zero.
at eCCBOAUnifiedDesktopPrototype.frmMain.btnExTest_Click
(Object sender, EventArgs e)
This is what it SHOULD be showing (from on of the simple
apps that it does work in):
System.DivideByZeroException: Attempted to divide by zero.
at TestExcep1.Form1.btnExTest_Click(Object sender,
EventArgs e) in c:\prog\vsnet\KillMeSoon\TestExcept1
\Form1.vb:line 62
Anyway, exception stacktraces are not nearly as useful
without the line number.
Thanks for any info anyway may have on this, as I have
not been able to fine ANY reference to this issue.
Tony
catch an exception and print the toString (or
stacktrace), it does NOT show the line number. However,
other simple apps I have it does show the line number.
How can I get it to always show the line number. How/why
is it not always showing it? Anyway, this is what the
exception shows (from one of the apps where exception
isn't working correctly):
System.DivideByZeroException: Attempted to divide by zero.
at eCCBOAUnifiedDesktopPrototype.frmMain.btnExTest_Click
(Object sender, EventArgs e)
This is what it SHOULD be showing (from on of the simple
apps that it does work in):
System.DivideByZeroException: Attempted to divide by zero.
at TestExcep1.Form1.btnExTest_Click(Object sender,
EventArgs e) in c:\prog\vsnet\KillMeSoon\TestExcept1
\Form1.vb:line 62
Anyway, exception stacktraces are not nearly as useful
without the line number.
Thanks for any info anyway may have on this, as I have
not been able to fine ANY reference to this issue.
Tony