Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!ucbvax!decwrl!decwrl!granite.pa.dec.com!mwm From: mwm@raven.pa.dec.com (Mike (Real Amigas have keyboard garages) Meyer) Newsgroups: comp.sys.amiga.tech Subject: Re: De-Allocating Memory? Message-ID: Date: 8 May 90 18:56:06 GMT References: <12750@wpi.wpi.edu> Sender: news@decwrl.dec.com Organization: Missionaria Phonibalonica Lines: 31 In-reply-to: pawn@wpi.wpi.edu's message of 8 May 90 03:49:05 GMT >> I'm doing an awful lot of mallocs to create a lot of linked lists... >> when I free them using >> Freeit(object) >> struct obj *object; >> { >> if (object->next != NULL) >> Freeit(object->next); >> free(object); >> } >> >> I don't get any memory back... >> I tried using lattices rbrk() with no luck... Lattice's memory routines allocate a growing pool. Doing a free() doesn't release the memory back to the OS, but puts it back in the pool for reuse by the Lattice memory manager. >> Also, I'd love to use AllocRemember, but the code in the Intuition Manual >> and Rom Kernal just don't work. (crash...) They work fine for me. The obvious problem - did you open the intuition library? The Remember routines are in it, and calling them will guru if you don't have it open.