this is my widows service. the problem is the timer not fired in this service when i debug....
Public Class Service1
#Region "variables"
Private t As Timers.Timer
#End Region
Protected Overrides Sub OnStart(ByVal args() As String)
' Add code here to start your service. This method should set things
' in motion so your service can do its work.
t = New Timers.Timer(1000)
t.AutoReset = True
AddHandler t.Elapsed, AddressOf TimerFired
t.Enabled = True
t.Start()
End Sub
Protected Overrides Sub OnStop()
' Add code here to perform any tear-down necessary to stop your service.
t.Stop()
t.Dispose()
End Sub
Private Sub TimerFired(ByVal sender As Object, ByVal e As System.Timers.ElapsedEventArgs)
Dim objBeta As New BLBeta
t.Stop()
objBeta.GetAllFunctions()
t.Start()
End Sub
End Class
Ather...