Exception reporting and line numbers?

  • Thread starter Thread starter Mark Stouffer
  • Start date Start date
M

Mark Stouffer

Is there any way to output the line number when writing exception
information to an even log? I have not been able to find this and it would
really help for Windows Services. Thanks.
 
Mark Stouffer said:
Is there any way to output the line number when writing exception
information to an even log? I have not been able to find this and it would
really help for Windows Services.

\\\
Private Sub Foo()
0: On Error GoTo ErrHandler
1: Dim i As Short
2: i = 32767
3: i = i * 2
ErrHandler:
MsgBox("Error " & Err.Number & " in line " & Err.Erl.ToString())
End Sub
///

- or -

'StackTrace':

<URL:http://groups.google.de/groups?selm=#[email protected]>
<URL:http://groups.google.de/groups?selm=OHh5458mCHA.1608@TK2MSFTNGP10>
 
Back
Top