Re: What's the point of Windows.Forms.Timer?
From: Christoph Nahr (christoph.nahr_at_kynosarges.de)
Date: 03/28/04
- Next message: Herfried K. Wagner [MVP]: "Re: Is there an AutoScrollPositionChanged event?"
- Previous message: sb: "Re: Problem changing tabs in tab controll from thread"
- In reply to: Justin Rogers: "Re: What's the point of Windows.Forms.Timer?"
- Next in thread: Ying-Shen Yu[MSFT]: "Re: What's the point of Windows.Forms.Timer?"
- Reply: Ying-Shen Yu[MSFT]: "Re: What's the point of Windows.Forms.Timer?"
- Reply: Chris Taylor: "Re: What's the point of Windows.Forms.Timer?"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 28 Mar 2004 23:35:42 +0200
On Sun, 28 Mar 2004 02:51:49 -0800, "Justin Rogers"
<Justin@games4dotnet.com> wrote:
>System.Windows.Forms.Timer is backed by the Win32 API SetTimer. I highly
>recommend reading the documentation for SetTimer and KillTimer. Note that
>Windows handles the creation of the message in this case, and there is a
>resource issue here since each timer creates a little bit more overhead in the
>system.
Hmm. Thanks for the info but I don't see how you got that out of the
rather sparse Platform SDK documentation... again, is there any
literature where this issue is described in any kind of detail?
>The System.Timers.Timer class on the other hand is backed by the
>CreateWaitableTimer. The code they use is far more complex and is completely
>dependent on background threads, the thread pool, and possibly marshalling the
>call onto the UI thread as pointed out earlier depending on your application.
Well, if you say the code is far more complex I guess I'll have to
believe you because I still don't see the reason!
-- http://www.kynosarges.de
- Next message: Herfried K. Wagner [MVP]: "Re: Is there an AutoScrollPositionChanged event?"
- Previous message: sb: "Re: Problem changing tabs in tab controll from thread"
- In reply to: Justin Rogers: "Re: What's the point of Windows.Forms.Timer?"
- Next in thread: Ying-Shen Yu[MSFT]: "Re: What's the point of Windows.Forms.Timer?"
- Reply: Ying-Shen Yu[MSFT]: "Re: What's the point of Windows.Forms.Timer?"
- Reply: Chris Taylor: "Re: What's the point of Windows.Forms.Timer?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|