SQLScholar
Programmer
Hey all,
I am making my first service, but am having a couple of issues understanding how it works.
I have
If the otimer = new system.threading fails, it just stops the process. This is making it incredibly difficult to debug any issues. How can i handle this correctly so that it doesnt just die?
Many thanks
Dan
----------------------------------------
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Dr. Seuss
Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------
I am making my first service, but am having a couple of issues understanding how it works.
I have
Code:
Try
Const iTIME_INTERVAL As Integer = 60000 ' 60 seconds.
Dim oTimer As System.Threading.Timer
System.IO.File.AppendAllText("C:\AuthorLog.txt", "AuthorLogService has been started at " & Now.ToString())
Dim tDelegate As Threading.TimerCallback = AddressOf EventAction
oTimer = New System.Threading.Timer(tDelegate, Me, 0, iTIME_INTERVAL)
Catch
End Try
If the otimer = new system.threading fails, it just stops the process. This is making it incredibly difficult to debug any issues. How can i handle this correctly so that it doesnt just die?
Many thanks
Dan
----------------------------------------
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Dr. Seuss
Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------