note
EdwardG
<p>Looking at the ActiveState sources, it seems 5.8.3 had the first Win32 implementation of alarm(). Here's the changelog comment -</p>
<code>
[ 21901] By: nicholas on 2003/12/13 21:22:15
Log: Integrate:
...
[ 21895]
alarm() is now implemented on Win32.
...
</code>
<p>And from looking inside <code>win32.c</code> it seems that win32_alarm() uses <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/timers/timerreference/timerfunctions/settimer.asp">SetTimer</a>.</p>
<p>And yes, the behaviour of SetTimer has changed from Win 2000 to Win 2003</p>
<p>On 2000 if the timeout "is greater than USER_TIMER_MAXIMUM, the timeout is set to 1."</p>
<p>On 2003 SP1 if the timeout "is greater than USER_TIMER_MAXIMUM, the timeout is set to USER_TIMER_MAXIMUM."</p>
<p>That might be your problem, maybe.</p>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-250038">
<p> </p>
</div></div>
526746
526746