Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!lavaca.uh.edu!uhnix1!uhnix2!uace0 From: uace0@uhnix2.uh.edu (Michael B. Vederman) Newsgroups: comp.sys.atari.st.tech Subject: Re: Malloc() and desk accessories Keywords: Malloc,Desk Accessory Message-ID: <1173@uhnix2.uh.edu> Date: 30 Aug 90 05:47:15 GMT References: <2261@atari.UUCP> <1632@van-bc.wimsey.bc.ca> Reply-To: uace0@uhnix2.UUCP Organization: University of Houston Lines: 36 In article <1632@van-bc.wimsey.bc.ca> jhenders@van-bc.wimsey.bc.ca (John Henders) writes: > > Thanks for the explanation Ken. Would using an auto program to serve >DA memory requests work? Could the auto program somehow wake up once Gem was >initialized so it could use the gem pipeline to get requests for memory from >DA's and attach them to it's basepage. If this worked,it would seem we could >have one auto program handle requests from many DA's. I know this is off- >topic from Steve's question,but I'm curious. hmm... Interesting idea, but I doubt you'd get any better results. You'd have to hook into the evnt_multi or evnt_mesag handler or even hook into the appl_write handler and fake a waiting event or entirely intercept the appl_write call... Too much trouble, but interesting concept. >Actually,I'd guess this is how >the non reset proof version of Shadow works. Not actually... For what you suggest above, tho, a similar handler to Shadow could be implemented for DAs. It would require your intercepting the Malloc() call from Gemdos. What Shadow does is change the p_run pointer to it's basepage before mallocing a buffer, then switches it back to the value before. p_run is the current process basepage pointer. It's location is documented for TOS 1.2 and greater. > > John Henders > Vancouver,BC - mike vederman (co-author of Shadow) -- ------------------------------------------------------------------------------ Double Click Me | Double Click Software | P.O. Box 741206 | Houston, Tx, 77274 ------------------------------------------------------------------------------ Voice: (713)977-6520 | DC DESKTOP | DC FORMATTER | DC UTILITIES | and others