Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!ames!ucbcad!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga Subject: AllocMem()/FreeMem() question. Message-ID: <8711302110.AA05131@cory.Berkeley.EDU> Date: Mon, 30-Nov-87 16:10:03 EST Article-I.D.: cory.8711302110.AA05131 Posted: Mon Nov 30 16:10:03 1987 Date-Received: Wed, 2-Dec-87 01:09:58 EST Sender: daemon@ucbvax.BERKELEY.EDU Lines: 17 Here's a question: If I AllocMem() a block of memory, can I FreeMem() a subsegment of that block (being careful to do everything on 8 byte boundries). That is: ptr = AllocMem(16, MEMF_PUBLIC); FreeMem(ptr+8,8); so ptr now points to 8 bytes allocated memory. Then at some point later on: FreeMem(ptr, 8); ??? -Matt