On Oct 31, 2007, at 1:58 PM, Fargo Holiday wrote:
> Charles Yeomans wrote:
>> On Oct 31, 2007, at 1:22 PM, Keith DeLong wrote:
>>
>>
>>> I'm looking for anyone with expertise in timers. The Online
>>> reference is
>>> inaccurate/incomplete and the Language Reference is unclear to me:
>>>
>>> What's the proper way to change the period of a running timer?
>>>
>>> If I change the period while a timer is running, does it restart
>>> the period
>>> from the time of the change or simply adjust the period based on
>>> when the
>>> period was originally set? I seem to be seeing differences on how
>>> this
>>> occurs between Windows and Mac.
>>>
>>> Is timer.Enabled = false and timer.Mode = timer.ModeOff synonymous?
>>>
>>> Are there any differences between timer.reset and time.enabled =
>>> true?
>>>
>>> Any clarification on the nuances is appreciated...
>>>
>>
>>
>> The Enabled property is, I believe, an artifact of the days when
>> Timer inherited from Control. Apparently it allows you to turn a
>> Timer off or on, but I've never used it.
>>
>> Timer behavior is platform-dependent. My experience is with Mac OS,
>> where they work quite well, and Linux, where they have provided a
>> steady source of pain. If you need to change the period of a Timer,
>> probably your best bet is to set its Mode to ModeOff, change the
>> period, then reset its Mode.
>>
>> Charles Yeomans
>> _______________________________________________
>>
>>
> What linux issues have you had? I've been using timers a lot in a
> couple
> of recent projects without any trouble so far, but knowing a potential
> issue could be useful.
I've seen quite a few problems with timer event handlers being called
after the timer was turned off or otherwise closed, and event
handlers being called when I did not expect them to be. I think that
some of these problems have been resolved, but I'm not sure...
Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|