|
-
Nov 21st, 2009, 08:34 AM
#1
Thread Starter
Lively Member
[RESOLVED] How to use SynchronizingObject property
I have 5 windows services that each uses 2 or more system.timers.timer. I want to use SynchronizingObject property to eliminate thread pooling issuse! Can someone please show me how to use this?
Thank you!
/Patrik
This is a example of one of my timers:
Private Timer As New System.Timers.Timer
AddHandler Timer.Elapsed, New System.Timers.ElapsedEventHandler(AddressOf Me.Timer_Elapsed)
Timer.Interval = 8000
Timer.AutoReset = False
Timer.Enabled = True
Private Sub Timer_Elapsed(ByVal sender As System.Object, ByVal e As System.Timers.ElapsedEventArgs)
Timer.Enabled = False
' do my code here
Timer.Enabled = true
ENS SUB
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|