Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!ox.com!math.fu-berlin.de!ira.uka.de!fauern!unido!mcshh!abqhh!drdhh!bjoern From: bjoern@drdhh.hanse.de (Bjoern Kriews) Newsgroups: comp.sys.atari.st.tech Subject: Re: Problem with my C program [a few general hints about malloc] Message-ID: <3015.05.91@drdhh.hanse.de> Date: 1 May 91 08:45:24 GMT References: <2913@atari.UUCP> Organization: Digital Island Lines: 22 From article <2913@atari.UUCP>, by apratt@atari.UUCP (Allan Pratt): > Humph. TOS 1.4 and upwards have NO PROBLEMS with Malloc that have been > reported to me. Hmm, try Malloc'ing little blocks until the OS returns NULL because there is no internal memory left for the MD's. Then Fopen() something. I think Fopen should return -39, but it will blow up the 'OUT OF' message. There are still other problems: Fdup'ing an already Fdup'ed handle causes the 'OUT OF' too. I just mailed you (Allan) a better description including sample source. If you don't get it via e-mail, please let me know. Greetings, Bjoern --- bjoern@drdhh.hanse.de = Bjoern Kriews / Stormsweg 6 / 2000 Hamburg 76 / FRG "gaaga mahwe Bjoern urgl ufzae Turbo-C bnub" (J. Willamowius)