|
-
Dec 5th, 2007, 01:54 AM
#1
Timers, GC
Does a timer event maintained by an object keep firing during the period in between the object going out of scope and being gabage collected?
-
Dec 5th, 2007, 02:05 AM
#2
Re: Timers, GC
I should clarify: By 'timer' I am referring to System.Threading.Timer, not another of the plethora of timer classes.
I have one class-level field that holds a reference to this timer. However, what I'm seeing in the debug log suggests to me that three events are firing at once, which seems impossible unless there exist three System.Threading.Timer objects. If that were the case, two of them must be awaiting garbage collection, and I must not have disposed of them correctly. I would like clarification of whether that is possible or not, though.
-
Dec 5th, 2007, 04:26 AM
#3
Lively Member
-
Dec 5th, 2007, 07:09 AM
#4
Re: Timers, GC
No, thank you. Brilliant post. Solved my problem in one go.
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
|