Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!aw0g+ From: aw0g+@andrew.cmu.edu (Aaron Wohl) Newsgroups: comp.sys.mac.programmer Subject: Re: DRVR question Message-ID: Date: 17 Jan 90 17:08:08 GMT References: Organization: Computing Systems, Carnegie Mellon, Pittsburgh, PA Lines: 16 In-Reply-To: What heap is the DRVR loaded in? Normaly this would be this application heap... Do you return an error in the drvr to the goodbye kiss and close calls? I think you need to do that to stay open. Also, do you use dCtlStorage and if so which heap is it allocated in? Also remember things like regions are really handles and have to be in the right heap. Also, I have heard talk about OpenDriver() failing if the driver is already open, I didn't try it myself though. Some code I disasembled ran over the divice table looking to see if the driver it wanted was present and if it was found doing control calls without ever having done an open. This allows the DRVR to be renumbered and still have things work. Apple of course assigns fixed driver numebers for its drivers and can just try a control call and see if it fails and then do an open if so. Aaron