Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!labrea!jade!ucbvax!COGSCI.BERKELEY.EDU!bryce From: bryce@COGSCI.BERKELEY.EDU (Bryce Nesbitt) Newsgroups: comp.sys.amiga Subject: Re: Need help with trackdisk problem Message-ID: <8708290953.AA14976@cogsci.berkeley.edu> Date: Sat, 29-Aug-87 05:53:48 EDT Article-I.D.: cogsci.8708290953.AA14976 Posted: Sat Aug 29 05:53:48 1987 Date-Received: Sun, 30-Aug-87 07:49:27 EDT Sender: usenet@ucbvax.BERKELEY.EDU Organization: Institute of Cognitive Studies, UC Berkeley Lines: 24 Keywords: help,trackdisk,DISKINSERTED,inhibit,format In article <> baer@percival.UUCP (Ken Baer) typed: > > Prior to formatting, I "inhibit" the validator and after formatting, I > "uninhibit", allowing the new disk to be validated. Currently, I have a > Delay(3 seconds) after a successful format operation to allow the validator > to do its thing (Gack! Pfft! Blech!). I'm doing this to prevent the > "Insert volume..." requester from appearing when the disk is accessed > before validation is complete. [How can I do this better?...] Why not just wait for the DISKINSERTED ICDMP message? Intuition sends you DISKINSERTED messages whenever a disk is inserted (no kidding!) or when you "uninhibit". The "Insert volume..." requester is, in fact, retried by a DISKINSERTED IDCMP message. You could also set the process structure member pr_WindowPTR to -1. This will return the "Insert volume..." causing error directly instead of building a requester. Of course, there is no easy way to turn around and build the requester if it turns out that the error called for it. ----- |\ /| . Ack! (NAK, EOT, SOH) {O o} . ( " ) bryce@hoser.berkeley.EDU -or- ucbvax!hoser!bryce U If "hoser" does not work, try my old address at "cogsci"