🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #10694

AbortIO with Timer device

#10694
From: John Lindwall
Date: Sat, 24 Dec 1988 03:31
28 lines
1657 bytes
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
---------------
Technical Details
Message-ID: <3332@sdsu.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!ucsd!sdcsvax!ucsdhub!sdsu!lindwall

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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