Re: What's the point of Windows.Forms.Timer?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Christoph Nahr (christoph.nahr_at_kynosarges.de)
Date: 03/28/04


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


Relevant Pages

  • Re: prototype.js (was Re: Ajax Timeouts)
    ... Having used and become dependent on its syntax, ... Some other attempts at documentation: ... There is no support community or blog of any real substance ... for feature detection. ...
    (comp.lang.javascript)
  • Re: [dm-devel] REQUEST for new topology metrics to be moved out of the queue sysfs directory.
    ... which knob to choose is I/O size dependent. ... it I can use the documentation to verify the implementation (in md at ... match the documented meaning I might even be ...
    (Linux-Kernel)
  • Re: looking for good mod_perl documentation -- desperate, out of options
    ... ability to feed themselves and their family was dependent on their ... ability to produce documentation that actually worked, and, if they ... had published something consisting of the contents of the URL above, ... Has any documentation ever been written for mod_perl that comes out ...
    (comp.lang.perl.modules)
  • Re: Newbie: formatting numbers
    ... >However as I said i was hoping for something simple and not dependent on ... >regional settings. ... >Do i have to read all this documentation? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Are things getting difficult?
    ... any files have been added since we last saw that card, ... I'm faced with a lot of documentation that waffles on endlessly about ... resource is, or what the syntax is for describing one. ... To me that's an admission that the API is badly designed. ...
    (uk.comp.os.linux)