15,894,214 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Silent Winter (Top 4 by date)
Silent Winter
23-Apr-11 16:50pm
View
I disagree with the statement "a timer will never be garbage collected while it is active". If the timer pointed to a third class's method, the third class would be collected - same as MyTimerData. I suspect that there is a global list - of timer delegates. Destroying the timer would remove the delegate & free the listener. I would need to see Microsoft's code to confirm this.
Silent Winter
23-Apr-11 16:35pm
View
Daniel Grunwald and orsobrown are in disagreement... I currently agree with Daniel Grunwald. But, if either of you know where you got your information; I would appreciate having a link there.
Silent Winter
23-Apr-11 16:29pm
View
I chose a WinForm application because I'm more familiar with them than command line applications. This timer was not intended to run on a UI thread. I apologize for any confusion.
Silent Winter
23-Apr-11 16:25pm
View
Thank you SAKryukov. This example was not intended to have practical sense. It is my test application to reproduce a problem in a larger application.