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 gitpyr.UUCP Path: utzoo!watmath!clyde!cbosgd!gatech!gitpyr!tynor From: tynor@gitpyr.UUCP (Steve Tynor) Newsgroups: net.micro.atari Subject: Re: 520ST malloc help! Message-ID: <1184@gitpyr.UUCP> Date: Fri, 13-Dec-85 10:18:17 EST Article-I.D.: gitpyr.1184 Posted: Fri Dec 13 10:18:17 1985 Date-Received: Sat, 14-Dec-85 03:33:30 EST References: <673@mprvaxa.UUCP> Reply-To: tynor@gitpyr.UUCP (Steve Tynor) Organization: Georgia Institute of Technology Lines: 17 In article <673@mprvaxa.UUCP> jackson@mprvaxa.UUCP (Taylor Jackson) writes: >I'm having trouble with malloc, e.g. any function call previous to malloc >causes it to fail (can't allocate memory for x bytes). Any suggestions? >Taylor Jackson > I had the same problem and called Richard Frick... It turns out that TOS gives up all of memory to the application. (seems pretty stupid to me). So in order to use Malloc, you have to first use Mfree to free up some memory. Now what I haven't figured out is how to determine where to start the Mfree????? It seems non-deterministic since depending on how many desk-accessories are loaded, the application will be loaded at various locations in memory... Any ideas? Steve Tynor