Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keep system.threading.timer from being garbage collected

Status
Not open for further replies.

jayy66

Programmer
Aug 21, 2006
56
US
Does anybody have any examples of how to keep my timer from being garbage colleted?? (System.threading namespce)

Code:
'global variable
Dim checkInboxTimer As System.Threading.Timer

'In Class
Dim timerDelegate As Threading.TimerCallback = AddressOf Me.SendFaxResponse
checkInboxTimer = New System.Threading.Timer(timerDelegate, Nothing, 60000, 20000)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top