Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site amiga.amiga.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!houxm!hjuxa!petsd!pesnta!pyramid!amiga!neil From: neil@amiga.UUCP (Neil Katin) Newsgroups: net.micro.amiga Subject: Re: Amiga memory management Message-ID: <621@amiga.amiga.UUCP> Date: Wed, 29-Jan-86 17:09:57 EST Article-I.D.: amiga.621 Posted: Wed Jan 29 17:09:57 1986 Date-Received: Sat, 1-Feb-86 00:43:26 EST References: <301@Navajo.ARPA> Reply-To: neil@rocky.UUCP (Neil Katin) Distribution: net Organization: Commodore-Amiga Inc., 983 University Ave #D, Los Gatos CA 95030 Lines: 17 In article <301@Navajo.ARPA> rokicki@Navajo.ARPA writes: > Here is a simple C routine I threw together which should >determine the amount of memory accessible by C (at least a rough >approximation.) When I run it, it dies; but it consists solely of >calls to AllocMem! Any hints out there? Tom then goes on with a program that allocates all of memory. A much more reasonable way is to use the AvailMem() call. AvailMem(0) will return the total number of free bytes in the memory pool AvailMem( MEMF_LARGEST ) will return the largest contiguous chunk of memory (e.g. the largest AllocMem that will succeed ). Neil Katin Commodore-Amiga, Inc.