Article View: comp.sys.amiga.tech
Article #3542Re: De-Allocating Memory?
From: Mike (Real Amigas have keyboard ...
Date: Tue, 08 May 1990 18:56
Date: Tue, 08 May 1990 18:56
31 lines
1601 bytes
1601 bytes
>> 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.
<mike
--
I'm gonna lasso you with my rubberband lazer, Mike Meyer
Pull you closer to me, and look right to the moon. mwm@relay.pa.dec.com
Ride side by side when worlds collide, decwrl!mwm
And slip into the Martian tide.
Technical Details
Message-ID:
<MWM.90May8115606@raven.pa.dec.com>Path:
arc1-ca.pugleaf.net!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!mwmReferences:
<12750@wpi.wpi.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <MWM.90May8115606@raven.pa.dec.com> 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