"Mark Stouffer" <tritonis@sbcgobal.net> schrieb:
> 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=%23yKmGTycDHA.2804%40TK2MSFTNGP11.phx.gbl>
<URL:http://groups.google.de/groups?selm=OHh5458mCHA.1608%40TK2MSFTNGP10>

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/