Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!portal!atari!apratt From: apratt@atari.UUCP (Allan Pratt) Newsgroups: comp.sys.atari.st.tech Subject: Re: Memory deallocation after TSR Message-ID: <2756@atari.UUCP> Date: 30 Nov 90 02:03:15 GMT References: <8381@star.cs.vu.nl> Distribution: comp Organization: Atari Corp., Sunnyvale CA Lines: 20 rfschaa@cs.vu.nl (Schaaf R F ) writes: > I have a problem: I have written a device driver for some virtual >device. It performs some initialisations, then quits by using the >gemdos(49) call (TSR). After a while, when I don't need the driver >anymore I would like to free the memory used up by the driver and >give it back for general use. Is there any way this can be done? > Richard Schaaf > rfschaa@cs.vu.nl Hmm... TSR... Terminate and Stay Resident... Sounds pretty permanent to me... Doesn't say, "Terminate and stick around until I decide to free you..." :-) You can't free memory which has stayed resident as a result of a TSR. It's not even accounted for in the system as "allocated" memory -- it's been UNHOOKED from the memory management lists. It's GONE. ============================================ Opinions expressed above do not necessarily -- Allan Pratt, Atari Corp. reflect those of Atari Corp. or anyone else. ...ames!atari!apratt