Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!math.fu-berlin.de!fauern!faui43.informatik.uni-erlangen.de!csbrod From: csbrod@immd4.informatik.uni-erlangen.de (Claus Brod) Newsgroups: comp.sys.atari.st.tech Subject: Re: Ptermres() Message-ID: <1991Apr8.130807.3046@informatik.uni-erlangen.de> Date: 8 Apr 91 13:08:07 GMT References: <1991Apr2.111427.27780@informatik.uni-erlangen.de> Distribution: comp Organization: CSD., University of Erlangen, Germany Lines: 21 wolfram@tschil.informatik.rwth-aachen.de (Wolfram Roesler) writes: >Just to make sure I understood things correctly: So I can write a program that >allocates memory for, say, a cookie jar and then terminates via Ptermres(0,0), >then the program will be removed from memory but the malloced space is ready >to be used by other programs running later? >Is that space EVER freed? This space stays resident till MIN(end of time, next cold/warmstart). Ptermres() hides all memory blocks you allocated, i.e. you won't find it in any of the two memory lists (memory free list or memory allocated list). So you can't do Mfree() on it. If I'm wrong here, Allan Pratt will certainly correct me in an instant 8-) ---------------------------------------------------------------------- Claus Brod, Am Felsenkeller 2, Things. Take. Time. D-8772 Marktheidenfeld, West Germany (Piet Hein) csbrod@medusa.informatik.uni-erlangen.de Claus Brod@wue.maus.de ----------------------------------------------------------------------