Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!mintaka!bloom-beacon!eru!luth!sunic!mcsun!unido!laura!trillian!klute From: klute@trillian.informatik.uni-dortmund.de (Rainer Klute) Newsgroups: comp.sys.atari.st Subject: Re: Malloc() in C and the 40-folder bug Message-ID: <2058@laura.UUCP> Date: 19 Mar 90 07:46:57 GMT References: <8672@chaph.usc.edu> Sender: news@laura.UUCP Reply-To: klute@trillian.informatik.uni-dortmund.de (Rainer Klute) Organization: University of Dortmund, FRG Lines: 17 In article <8672@chaph.usc.edu>, jjung@alcor.usc.edu (John Jung) writes: > I'm currently developing an application for the ST in C that uses dynamic > storage of linked lists. As a consequence, I'm Malloc()ing blocks of memory > left and right. Since I don't want to encounter this bug, I'd like to know > if anyone has a solution for me to use? > I'm developing with Laser C. You don't have to worry at all. Simply avoid using Malloc and use malloc all the time. Laser C will allocate a large memory chunk with Malloc whenever neccessary and pass it on to you in (smaller) chunks you request with malloc. Dipl.-Inform. Rainer Klute klute@heike.informatik.uni-dortmund.de Univ. Dortmund, IRB klute@unido.uucp, klute@unido.bitnet Postfach 500500 |)|/ ...uunet!mcvax!unido!klute D-4600 Dortmund 50 |\|\ Tel.: +49 231 755-4663