Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!cbmvax!andy From: andy@cbmvax.cbm.UUCP (Andy Finkel) Newsgroups: comp.sys.amiga Subject: Re: Amiga Wish List Message-ID: <2034@cbmvax.cbmvax.cbm.UUCP> Date: Tue, 23-Jun-87 10:21:55 EDT Article-I.D.: cbmvax.2034 Posted: Tue Jun 23 10:21:55 1987 Date-Received: Thu, 25-Jun-87 03:59:23 EDT References: <8706120543.AA16187@cory.Berkeley.EDU> <1601@stb.UUCP> Reply-To: andy@cbmvax.UUCP (Andy Finkel) Organization: Commodore Technology, West Chester, PA Lines: 47 In article <1601@stb.UUCP> michael@stb.UUCP (Michael) writes: >> Setting the pr_Window field in a process's process structure causes >>DOS to return an error immediately without asking for user assistance. >> >> -Matt > >False. The printer driver will still put up "Printer problems", >the disk device will still put up "I/o error", the disk validator will >still put up "Use disk doctor", etc. > >The point is, that only stops YOUR task's messages, not messages from tasks >that you call. Actually, the printer.device, since it runs as a task, rather than a process, strictly speaking has no pr_WindowPtr. So it uses the one from the calling task (ie, you). Printer requests are stopped by setting your pr_WindowPtr to -1. You're right about AmigaDOS, though. Any error message it can't figure out who it belongs to, it will put up a requester. There are two ways around this; both have their side effects. One could FindTask the file system process and change its pr_WindowPtr, (I haven't tried this, so really don't know just how horrible it might be. Maybe it will work perfectly) The other is to do a SetFunction on AutoRequest, and divert all requesters to the device of your choice (ie console, or the bit bucket). I was going to write the later and post it, but I'm pressed for time right now...sorry :-( >-- >: Michael Gersten seismo!scgvaxd!stb!michael >: Ground floor, comming up -- 1-3-7 andy finkel -- andy finkel {ihnp4|seismo|allegra}!cbmvax!andy Commodore-Amiga, Inc. "The goal of Computer Science is to build something that will last at least until we've finished building it." Any expressed opinions are mine; but feel free to share. I disclaim all responsibilities, all shapes, all sizes, all colors.