Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!math.fu-berlin.de!ira.uka.de!smurf!urlichs From: urlichs@smurf.sub.org (Matthias Urlichs) Newsgroups: comp.sys.mac.programmer Subject: Re: Can I/O Completion routine call 'GetRequest'?? Message-ID: Date: 4 May 91 22:20:52 GMT References: <0B010004.nn2ddd@outpost.UUCP> <1991Apr21.224503.12761@engin.umich.edu> <64025@bbn.BBN.COM> Organization: University of Karlsruhe, FRG Lines: 25 In comp.sys.mac.programmer, article <64025@bbn.BBN.COM>, rmitchel@bbn.com (Rob Mitchell) writes: < < I've tried to use the same param block from an I/O completion < routine, but it bombs out with SCSI dismount errors??? I know < it sounds strange, but that's what MacsBug "ip" command in < telling me. < In that case, you're doing something wrong because other people have used that method without running into strange problems -- at least not after fixing all the bugs commonly lurking in interrupt-callable code. :-( Maybe you're trashing a register or some global? < What I've done is when IO completion is called, I set a flag in PB. The flag is already there; it's called "ioResult". > 0 means the operation is still in progress. NB: Don't forget that MacsBug messages aren't very helpful when deep inside the ROM. You can get a better idea as to what the code you're looking at is supposed to do by looking up the address in the ROM map for your machine. (Look in the "ROM Maps" folder in your MPW directory.) -- Matthias Urlichs -- urlichs@smurf.sub.org -- urlichs@smurf.ira.uka.de /(o\ Humboldtstrasse 7 - 7500 Karlsruhe 1 - FRG -- +49-721-621127(0700-2330) \o)/