Path: utzoo!attcan!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!ucsd!sdcsvax!ucsdhub!sdsu!lindwall From: lindwall@sdsu.UUCP (John Lindwall) Newsgroups: comp.sys.amiga.tech Subject: AbortIO with Timer device Keywords: AbortIO Timer device programming help Message-ID: <3332@sdsu.UUCP> Date: 24 Dec 88 03:31:55 GMT Organization: San Diego State University, Math/Sciences Dept. Lines: 28 Background ---------- I am writing a program which is using the timer device to act as a (surprise) timer. It is a quiz program on the International System of Units. I want to time the user while he takes the quiz. The user's score will be based on # of correct answers, # of wrong guesses, and the amount of time it took. I want to display a timer in the (WorkBench) window which increments every second. I can set up stuff properly to get timer events every second. I am using the UNIT_VBLANK timer. Fine accuracy is not super important. So far all is fine. Problems with AbortIO() ----------------------- My problem is that sometimes I wish to abort the current timer request. After aborting the current request (and going off to do other stuff) I need the timing to resume. I am currently re-using the same timerequest and calling (as before) SendIO() to request a timer event. The timer never sends another event! Does AbortIO() have an adverse effect on my communications to the timer device? I've tried re-opening the device with OpenDevice() but it doesn't help. Do I have to open a new Port to the timer device with CreatePort()? Please Help me! Thanks, John Lindwall ---------------