Jasen Betts wrote to Ken Hrynchuk on 01-25-98:
JB> Um I think you posted the wrong code the one you posted does an
JB> (approx) 10 second delay (180 ticks) (from looking at the code)
JB> and from testing it works fine. (182 ticks would be closer to 10 secs)
Are you sure about that? The source I assembled it from was written to
delay for 182 ticks. Oh, well - no biggie. Did you try running it at,
say, 5 seconds before midnight under DOS? If you did, and it didn't
abort at midnight, could you please tell me which version of DOS, and
if you've loaded any drivers, TSRs, etc. that hook any of the timer/
clock ints./routines?
JB> To detect change-of-hour test for either
JB> transition from ffff to 0000 in word 0000:046c
JB> or a change in byte 0000:0046f (preferred)
I tried both of these methods - it still aborted at midnight (but not
at the changing of the hour (?)).
JB> You should probably call int 28 (dos idle) while in these loops to
JB> have you application "multitasker aware" it only costs 2 bytes ;-)
I'll give this a try (even though it multitasks quite well here under
both Desqview 2.63 and Windows 3.1).
JB> hope this helps.
Yes, it does - and I appreciate your help.
Ken
-- Invalid environment size - ecosystem halted.
* KenMail 1.0 *
~ ~ ~
--- FMail 0.92
---------------
* Origin: The Programmer's Oasis on FIDONET! (1:348/203)
|