Path: utzoo!utgpu!attcan!uunet!tektronix!sequent!mntgfx!tomc.build From: tomc.build@mntgfx.mentor.com (Tom Carstensen) Newsgroups: comp.sys.mac.programmer Subject: Memory Management Keywords: memory handling management Message-ID: <1989Jan20.142745.3410@mntgfx.mentor.com> Date: 20 Jan 89 22:27:43 GMT Organization: Mentor Graphics Corporation, Beaverton Oregon Lines: 38 I while ago there were a few articles about memory management schemes. I trying to get more info about the following scheme: I'm trying to get my memory management staightened out. I have re-segmented my program, made sure that every call to a memory allocation routine checks for an error, put in a Grow proc and have allocatyed a small buffer when all attempts to allocate memory fail. Everything is working great, the only problems I have are system errors when a code segment that is needed can't be loaded into memory. I read about a scheme you for MacApp, where you determine the maximum code set, and make sure there is at least this much memory minus the memory currently used by loaded code segments. Question: Do you add up the total memory used by loaded code segments continuously, - I guess I'm not quite sure how this scheme works. I would appreciate it if anyone could send me a little more info on this scheme. Thanks :------------------------------------------------------------: : | GEnie: T.CARSTENSEN : : Thomas Carstensen | Delphi: CARSTENSEN : : Mentor Graphics | CompuServe: 73627,2762 : : 8500 SW Creekside Pl. | : : Beaverton, OR 97005-7191 | tomc@pdx.MENTOR.COM : : (503) 626-7000 | ...{sequent,tessi,attunix, : : | apollo}!mntgfx!tomc : :------------------------------------------------------------: : . . . This is Edison Carter coming to you very much : : live and direct from Network 23 . . . : : - Edison Carter : :------------------------------------------------------------: